Loading src/com/android/launcher3/Launcher.java +3 −0 Original line number Diff line number Diff line Loading @@ -4434,6 +4434,9 @@ public class Launcher extends Activity } } protected boolean shouldClingFocusHotseatApp() { return false; } protected String getFirstRunClingSearchBarHint() { return ""; } Loading src/com/android/launcher3/LauncherClings.java +7 −15 Original line number Diff line number Diff line Loading @@ -264,12 +264,7 @@ class LauncherClings { WORKSPACE_CLING_DISMISSED_KEY, false)) { Cling c = initCling(R.id.workspace_cling, 0, false, true); c.updateWorkspaceBubblePosition(); try { // We only enable the focused hotseat app if we are preinstalled PackageManager pm = mLauncher.getPackageManager(); ApplicationInfo ai = pm.getApplicationInfo(mLauncher.getPackageName(), 0); if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { if (mLauncher.shouldClingFocusHotseatApp()) { // Set the focused hotseat app c.setFocusedHotseatApp(mLauncher.getFirstRunFocusedHotseatAppDrawableId(), mLauncher.getFirstRunFocusedHotseatAppRank(), Loading @@ -277,9 +272,6 @@ class LauncherClings { mLauncher.getFirstRunFocusedHotseatAppBubbleTitle(), mLauncher.getFirstRunFocusedHotseatAppBubbleDescription()); } } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } } else { removeCling(R.id.workspace_cling); } Loading Loading
src/com/android/launcher3/Launcher.java +3 −0 Original line number Diff line number Diff line Loading @@ -4434,6 +4434,9 @@ public class Launcher extends Activity } } protected boolean shouldClingFocusHotseatApp() { return false; } protected String getFirstRunClingSearchBarHint() { return ""; } Loading
src/com/android/launcher3/LauncherClings.java +7 −15 Original line number Diff line number Diff line Loading @@ -264,12 +264,7 @@ class LauncherClings { WORKSPACE_CLING_DISMISSED_KEY, false)) { Cling c = initCling(R.id.workspace_cling, 0, false, true); c.updateWorkspaceBubblePosition(); try { // We only enable the focused hotseat app if we are preinstalled PackageManager pm = mLauncher.getPackageManager(); ApplicationInfo ai = pm.getApplicationInfo(mLauncher.getPackageName(), 0); if ((ai.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { if (mLauncher.shouldClingFocusHotseatApp()) { // Set the focused hotseat app c.setFocusedHotseatApp(mLauncher.getFirstRunFocusedHotseatAppDrawableId(), mLauncher.getFirstRunFocusedHotseatAppRank(), Loading @@ -277,9 +272,6 @@ class LauncherClings { mLauncher.getFirstRunFocusedHotseatAppBubbleTitle(), mLauncher.getFirstRunFocusedHotseatAppBubbleDescription()); } } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } } else { removeCling(R.id.workspace_cling); } Loading