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

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

Fix clear call log option in overflow menu

Bug: 10895974
Change-Id: I4259602709705665aefddba38784667faa6d50aa
parent d73ea85a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -157,7 +157,7 @@ public class CallLogActivity extends Activity {
        // If onPrepareOptionsMenu is called before fragments loaded. Don't do anything.
        if (mAllCallsFragment != null && itemDeleteAll != null) {
            final CallLogAdapter adapter = mAllCallsFragment.getAdapter();
            itemDeleteAll.setEnabled(adapter != null && !adapter.isEmpty());
            itemDeleteAll.setVisible(adapter != null && !adapter.isEmpty());
        }
        return true;
    }