summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-10-17 23:16:53 (GMT)
committerSunny Goyal <sunnygoyal@google.com>2016-10-17 23:17:54 (GMT)
commitf4b457709f330c5e3478a9ffa407d09bf97f8820 (patch)
tree5713db5a7c2083b4e4b7d63d7fd3d24e8d2a09d2
parent3cca5a0cae1a1255458c17a4134ca65ea25852c1 (diff)
downloadandroid_packages_apps_Trebuchet-f4b457709f330c5e3478a9ffa407d09bf97f8820.zip
android_packages_apps_Trebuchet-f4b457709f330c5e3478a9ffa407d09bf97f8820.tar.gz
android_packages_apps_Trebuchet-f4b457709f330c5e3478a9ffa407d09bf97f8820.tar.bz2
Removing the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS
Launcher does not use any panels which need closing & system sends an onActivityResult(RESULT_CANCELLED), we do not need special handling for waitingForResult Bug: 32127718 Change-Id: Iff5161444bc909442f6acbe52cb3fb5a2d9ae4da
-rw-r--r--src/com/android/launcher3/Launcher.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 544aef2..4672e08 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -215,9 +215,7 @@ public class Launcher extends Activity
@Override
public void onReceive(Context context, Intent intent) {
- if (Intent.ACTION_CLOSE_SYSTEM_DIALOGS.equals(intent.getAction())) {
- closeSystemDialogs();
- } else if (ACTION_APPWIDGET_HOST_RESET.equals(intent.getAction())) {
+ if (ACTION_APPWIDGET_HOST_RESET.equals(intent.getAction())) {
if (mAppWidgetHost != null) {
mAppWidgetHost.startListening();
}
@@ -455,8 +453,7 @@ public class Launcher extends Activity
mDefaultKeySsb = new SpannableStringBuilder();
Selection.setSelection(mDefaultKeySsb, 0);
- IntentFilter filter = new IntentFilter(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
- filter.addAction(ACTION_APPWIDGET_HOST_RESET);
+ IntentFilter filter = new IntentFilter(ACTION_APPWIDGET_HOST_RESET);
registerReceiver(mUiBroadcastReceiver, filter);
mRotationEnabled = getResources().getBoolean(R.bool.allow_rotation);