From a79ecc9a0d0f4e3df44b437477985eb07b97711f Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 13 Jul 2015 14:21:16 -0700 Subject: Don't cache results of permission check For maximum safety, always check the current permission status on the fly. Bug: 22455059 Change-Id: I05da7ec1ad2e885e3e5e78e14585c876ac19178e --- src/com/android/dialer/CallDetailActivity.java | 1 - src/com/android/dialer/DialtactsActivity.java | 1 - src/com/android/dialer/calllog/CallLogActivity.java | 1 - 3 files changed, 3 deletions(-) (limited to 'src/com/android') diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index ec92f3f94..c6ec8e1a0 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -268,7 +268,6 @@ public class CallDetailActivity extends Activity @Override public void onResume() { super.onResume(); - PermissionsUtil.updateCachedPermissions(this); getCallDetails(); } diff --git a/src/com/android/dialer/DialtactsActivity.java b/src/com/android/dialer/DialtactsActivity.java index e714c7880..31d1b94bf 100644 --- a/src/com/android/dialer/DialtactsActivity.java +++ b/src/com/android/dialer/DialtactsActivity.java @@ -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()); diff --git a/src/com/android/dialer/calllog/CallLogActivity.java b/src/com/android/dialer/calllog/CallLogActivity.java index 0f2f83860..1f6c49066 100644 --- a/src/com/android/dialer/calllog/CallLogActivity.java +++ b/src/com/android/dialer/calllog/CallLogActivity.java @@ -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()); } -- cgit v1.2.3