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

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

Remove use of private isResumed API

Change-Id: I3ad2277b4822d219bd53b35914befb4a4d52b45b
parent b5f47c52
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -66,6 +66,8 @@ public class CallLogActivity extends Activity implements CallLogQueryHandler.Lis

    private boolean mHasActiveVoicemailProvider;

    private boolean mIsResumed;

    private final Runnable mWaitForVoicemailTimeoutRunnable = new Runnable() {
        @Override
        public void run() {
@@ -188,6 +190,7 @@ public class CallLogActivity extends Activity implements CallLogQueryHandler.Lis

    @Override
    protected void onResume() {
        mIsResumed = true;
        super.onResume();
        CallLogQueryHandler callLogQueryHandler =
                new CallLogQueryHandler(this.getContentResolver(), this);
@@ -195,6 +198,12 @@ public class CallLogActivity extends Activity implements CallLogQueryHandler.Lis
        sendScreenViewForChildFragment(mViewPager.getCurrentItem());
    }

    @Override
    protected void onPause() {
        mIsResumed = false;
        super.onPause();
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        final MenuInflater inflater = getMenuInflater();
@@ -264,7 +273,7 @@ public class CallLogActivity extends Activity implements CallLogQueryHandler.Lis

    @Override
    public void onPageSelected(int position) {
        if (isResumed()) {
        if (mIsResumed) {
            sendScreenViewForChildFragment(position);
        }
        mViewPagerTabs.onPageSelected(position);