|
|
@ -41,7 +41,6 @@ public class AutoPermissionFragment extends Fragment { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onPause() { |
|
|
|
public void onPause() { |
|
|
|
super.onPause(); |
|
|
|
super.onPause(); |
|
|
|
mHandler.removeCallbacks(mRunnable); |
|
|
|
|
|
|
|
mIsActivityReady = false; |
|
|
|
mIsActivityReady = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -67,6 +66,7 @@ public class AutoPermissionFragment extends Fragment { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void startRequest() { |
|
|
|
void startRequest() { |
|
|
|
|
|
|
|
Timber.d("startRequest() called "); |
|
|
|
mHandler.removeCallbacks(mRunnable); |
|
|
|
mHandler.removeCallbacks(mRunnable); |
|
|
|
startChecked(); |
|
|
|
startChecked(); |
|
|
|
} |
|
|
|
} |
|
|
@ -78,6 +78,7 @@ public class AutoPermissionFragment extends Fragment { |
|
|
|
if (callback != null) { |
|
|
|
if (callback != null) { |
|
|
|
callback.onReady(); |
|
|
|
callback.onReady(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
mCallback = null; |
|
|
|
mHandler.removeCallbacks(mRunnable); |
|
|
|
mHandler.removeCallbacks(mRunnable); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
mHandler.postDelayed(mRunnable, 300); |
|
|
|
mHandler.postDelayed(mRunnable, 300); |
|
|
|