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

Commit a79ecc9a authored by Yorke Lee's avatar Yorke Lee
Browse files

Don't cache results of permission check

For maximum safety, always check the current permission status
on the fly.

Bug: 22455059
Change-Id: I05da7ec1ad2e885e3e5e78e14585c876ac19178e
parent 97b8626c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -268,7 +268,6 @@ public class CallDetailActivity extends Activity
    @Override
    public void onResume() {
        super.onResume();
        PermissionsUtil.updateCachedPermissions(this);
        getCallDetails();
    }

+0 −1
Original line number Diff line number Diff line
@@ -513,7 +513,6 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
        Trace.beginSection(TAG + " onResume");
        super.onResume();

        PermissionsUtil.updateCachedPermissions(this);
        mStateSaved = false;
        if (mFirstLaunch) {
            displayFragment(getIntent());
+0 −1
Original line number Diff line number Diff line
@@ -151,7 +151,6 @@ public class CallLogActivity extends Activity implements ViewPager.OnPageChangeL
    protected void onResume() {
        mIsResumed = true;
        super.onResume();
        PermissionsUtil.updateCachedPermissions(this);
        sendScreenViewForChildFragment(mViewPager.getCurrentItem());
    }