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

Commit 0e2147c5 authored by Jason Chiu's avatar Jason Chiu
Browse files

Fix the injection disappearance in the Account detail page

displayTile() requires some parameters to determine whether to show the
injection tiles and update the intent, but the parameters were not
initialized.

Move the parameter initialization before super.onCreate() since
displayTile() will be called in super.onCreate().

Test: visual, robotest
Fix: 242673595
Change-Id: Idf2d758a8b8c4230e644bcd0d286a278d258b736
parent baa3f3a3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -64,8 +64,7 @@ public class AccountDetailDashboardFragment extends DashboardFragment {

    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        getPreferenceManager().setPreferenceComparisonCallback(null);
        // Initialize the parameters since displayTile() will be called in super.onCreate().
        Bundle args = getArguments();
        final Activity activity = getActivity();
        mUserHandle = Utils.getSecureTargetUser(activity.getActivityToken(),
@@ -82,6 +81,9 @@ public class AccountDetailDashboardFragment extends DashboardFragment {
                mAccountType = args.getString(KEY_ACCOUNT_TYPE);
            }
        }

        super.onCreate(icicle);
        getPreferenceManager().setPreferenceComparisonCallback(null);
        mAccountSynController.init(mAccount, mUserHandle);
        mRemoveAccountController.init(mAccount, mUserHandle);
    }