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

Commit 323c5906 authored by Flavio Lerda's avatar Flavio Lerda Committed by Android (Google) Code Review
Browse files

Merge "Invalidate the options menu on visibility changes."

parents c3adaa5c 07084691
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -337,7 +337,15 @@ public class CallLogFragment extends ListFragment implements ViewPagerVisibility

    @Override
    public void onVisibilityChanged(boolean visible) {
        if (mShowOptionsMenu != visible) {
            mShowOptionsMenu = visible;
            // Invalidate the options menu since we are changing the list of options shown in it.
            Activity activity = getActivity();
            if (activity != null) {
                activity.invalidateOptionsMenu();
            }
        }

        if (visible && isResumed()) {
            refreshData();
        }