Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0bb4867 authored by Sunny Goyal's avatar Sunny Goyal Committed by android-build-merger
Browse files

Removing the logic around closeSystemDialog on ACTION_CLOSE_SYSTEM_DIALOGS...

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
am: f4b45770

Change-Id: I2880167fbf37ff62ec4af88e233ab0b555453dae
parents d51ffaec f4b45770
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -210,9 +210,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();
                }
@@ -443,8 +441,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);