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
This commit is contained in:
Sunny Goyal 2016-10-18 00:16:53 +01:00
parent 3cca5a0cae
commit f4b457709f
1 changed files with 2 additions and 5 deletions

View File

@ -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);