am ae4d9fbd: am 121b28e8: Merge "Fix clear call log option in overflow menu" into klp-dev
* commit 'ae4d9fbd7289c2e292179e5124f803320cc9b382':
Fix clear call log option in overflow menu
diff --git a/src/com/android/dialer/calllog/CallLogActivity.java b/src/com/android/dialer/calllog/CallLogActivity.java
index c343a7c..42318f0 100644
--- a/src/com/android/dialer/calllog/CallLogActivity.java
+++ b/src/com/android/dialer/calllog/CallLogActivity.java
@@ -157,7 +157,7 @@
// 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;
}