1.4.0428 增加Huaruian8768
This commit is contained in:
@@ -337,8 +337,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
||||
private DeviceProfile mStableDeviceProfile;
|
||||
private RotationMode mRotationMode = RotationMode.NORMAL;
|
||||
|
||||
public static boolean isForeground = false;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
RaceConditionTracker.onEvent(ON_CREATE_EVT, ENTER);
|
||||
@@ -545,6 +543,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
||||
}
|
||||
|
||||
private void SetWallPaper() {
|
||||
Log.e(TAG, "SetWallPaper: ");
|
||||
//利用WallpaparManager,添加权限set_wallpaper
|
||||
WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
|
||||
try {
|
||||
@@ -1277,7 +1276,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
||||
RaceConditionTracker.onEvent(ON_RESUME_EVT, EXIT);
|
||||
|
||||
Log.e(TAG, "onResume: ");
|
||||
isForeground = true;
|
||||
/*打开霸屏应用*/
|
||||
String always_top_packagename = Settings.System.getString(getContentResolver(), "always_top_packagename");
|
||||
if (!TextUtils.isEmpty(always_top_packagename)) {
|
||||
@@ -1481,7 +1479,6 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns,
|
||||
if (mLauncherCallbacks != null) {
|
||||
mLauncherCallbacks.onPause();
|
||||
}
|
||||
isForeground = false;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -255,7 +255,7 @@ public class LoaderTask implements Runnable {
|
||||
/**
|
||||
* 需要隐藏的图标
|
||||
*/
|
||||
private HashSet<String> hideApp = new HashSet<String>() {{
|
||||
private static final HashSet<String> hideApp = new HashSet<String>() {{
|
||||
this.add(BuildConfig.APPLICATION_ID);
|
||||
this.add("com.android.quicksearchbox");
|
||||
this.add("com.st.nfc.dta.mobile");
|
||||
@@ -263,12 +263,13 @@ public class LoaderTask implements Runnable {
|
||||
this.add("com.mediatek.factorymode");
|
||||
this.add("org.chromium.browser");
|
||||
this.add("com.android.email");
|
||||
this.add("com.android.soundrecorder");
|
||||
}};
|
||||
|
||||
/**
|
||||
* 系统应用只显示这几个
|
||||
*/
|
||||
public static HashSet<String> showApp = new HashSet<String>() {{
|
||||
public static final HashSet<String> showApp = new HashSet<String>() {{
|
||||
// this.add(BuildConfig.APPLICATION_ID);
|
||||
//aoleyun
|
||||
this.add("com.aoleyun.sn");
|
||||
@@ -337,18 +338,18 @@ public class LoaderTask implements Runnable {
|
||||
/*系统应用*/
|
||||
if (JGYUtils.getInstance().getDeviceIsLocked() && aihuaUnlock != 1) {
|
||||
if ((app.getApplicationFlags() & ApplicationInfo.FLAG_SYSTEM) == 1) {
|
||||
if (!showApp.contains(app.getApplicationInfo().packageName)) {
|
||||
if (hideApp.contains(app.getApplicationInfo().packageName)) {
|
||||
Log.e("verifyApplications", "skip1: " + app.getApplicationInfo().packageName);
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
if (TextUtils.isEmpty(whiteList)) {
|
||||
if (!showApp.contains(app.getApplicationInfo().packageName)) {
|
||||
if (hideApp.contains(app.getApplicationInfo().packageName)) {
|
||||
Log.e("verifyApplications", "skip2: " + app.getApplicationInfo().packageName);
|
||||
continue;
|
||||
}
|
||||
} else if (!whiteList.contains(app.getApplicationInfo().packageName)) {
|
||||
if (!showApp.contains(app.getApplicationInfo().packageName)) {
|
||||
if (hideApp.contains(app.getApplicationInfo().packageName)) {
|
||||
Log.e("verifyApplications", "skip3: " + app.getApplicationInfo().packageName);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -246,15 +246,6 @@ public class ItemClickHandler {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static String[] packages = {
|
||||
"com.appstore.uiui",
|
||||
"com.uiuios.updatetools",
|
||||
"com.info.sn",
|
||||
"com.android.uiuios",
|
||||
"com.easyold.uiuios",
|
||||
"com.jiaoguanyi.store"
|
||||
};
|
||||
|
||||
/**
|
||||
* Event handler for a folder icon click.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user