彻底删除小米推送,整理部分TODO

This commit is contained in:
kehaoyuan
2017-11-21 16:55:45 +08:00
parent cb95204fac
commit 3baec32ff8
32 changed files with 148 additions and 1368 deletions

View File

@ -21,7 +21,6 @@ import android.widget.TextView;
import com.gh.base.BaseActivity;
import com.gh.common.util.DialogUtils;
import com.gh.common.util.EntranceUtils;
import com.gh.common.util.PackageUtils;
import com.gh.common.util.PlatformUtils;
import com.gh.common.util.TagUtils;
@ -53,10 +52,7 @@ import pub.devrel.easypermissions.EasyPermissions;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;
import static com.gh.common.util.EntranceUtils.ENTRANCE_DOWNLOAD;
import static com.gh.common.util.EntranceUtils.KEY_DATA;
import static com.gh.common.util.EntranceUtils.KEY_ENTRANCE;
import static com.gh.common.util.EntranceUtils.KEY_TO;
/**
* 引导页面
@ -97,30 +93,6 @@ public class SplashScreenActivity extends BaseActivity {
return intent;
}
// 下载消息栏跳转
public static Intent getIntentByDownload(Context context, String keyTo) {
Intent intent = new Intent(context, SplashScreenActivity.class);
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.putExtra(KEY_TO, keyTo);
intent.putExtra(KEY_ENTRANCE, ENTRANCE_DOWNLOAD);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return intent;
}
// 下载完成 安装消息栏跳转
public static Intent getIntentByInstall(Context context, String path) {
Intent intent = new Intent(context, SplashScreenActivity.class);
intent.setAction(Intent.ACTION_MAIN);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.putExtra(KEY_TO, DownloadManagerActivity.TAG);
intent.putExtra(EntranceUtils.KEY_CURRENTITEM, 0);
intent.putExtra(EntranceUtils.KEY_PATH, path);
intent.putExtra(EntranceUtils.KEY_ENTRANCE, "(安装跳转)");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return intent;
}
@Override
protected void onCreate(Bundle savedInstanceState) {