From 53b7ce18f4dcbc52d84829103b87917363cbaf05 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 14 Apr 2016 11:25:56 -0700 Subject: [PATCH] Removing first launcher broadcast Change-Id: I225205a219cf2e0f27bb3c78cbdad1a3429d466f --- AndroidManifest.xml | 4 ---- res/values/strings.xml | 3 --- src/com/android/launcher3/Launcher.java | 17 ----------------- 3 files changed, 24 deletions(-) diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 09086f9b6..48fd87c03 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -44,9 +44,6 @@ android:name="com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS" android:protectionLevel="signature" /> - @@ -59,7 +56,6 @@ - com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS - - com.android.launcher3.permission.RECEIVE_FIRST_LOAD_BROADCAST - Launcher3 diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 587336802..6958633cd 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -196,10 +196,6 @@ public class Launcher extends Activity static final String INTRO_SCREEN_DISMISSED = "launcher.intro_screen_dismissed"; static final String FIRST_RUN_ACTIVITY_DISPLAYED = "launcher.first_run_activity_displayed"; - static final String FIRST_LOAD_COMPLETE = "launcher.first_load_complete"; - static final String ACTION_FIRST_LOAD_COMPLETE = - "com.android.launcher3.action.FIRST_LOAD_COMPLETE"; - private static final String QSB_WIDGET_ID = "qsb_widget_id"; private static final String QSB_WIDGET_PROVIDER = "qsb_widget_provider"; @@ -4102,7 +4098,6 @@ public class Launcher extends Activity mWorkspace.restoreInstanceStateForRemainingPages(); setWorkspaceLoading(false); - sendLoadingCompleteBroadcastIfNecessary(); // If we received the result of any pending adds while the loader was running (e.g. the // widget configuration forced an orientation change), process them now. @@ -4128,18 +4123,6 @@ public class Launcher extends Activity } } - private void sendLoadingCompleteBroadcastIfNecessary() { - if (!mSharedPrefs.getBoolean(FIRST_LOAD_COMPLETE, false)) { - String permission = - getResources().getString(R.string.receive_first_load_broadcast_permission); - Intent intent = new Intent(ACTION_FIRST_LOAD_COMPLETE); - sendBroadcast(intent, permission); - SharedPreferences.Editor editor = mSharedPrefs.edit(); - editor.putBoolean(FIRST_LOAD_COMPLETE, true); - editor.apply(); - } - } - public boolean isAllAppsButtonRank(int rank) { if (mHotseat != null) { return mHotseat.isAllAppsButtonRank(rank); -- 2.11.0