diff options
Diffstat (limited to 'java/com/android/dialer/app')
-rw-r--r-- | java/com/android/dialer/app/DialtactsActivity.java | 5 | ||||
-rw-r--r-- | java/com/android/dialer/app/list/OldSpeedDialFragment.java | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/DialtactsActivity.java b/java/com/android/dialer/app/DialtactsActivity.java index ff64ba168..b8fd57159 100644 --- a/java/com/android/dialer/app/DialtactsActivity.java +++ b/java/com/android/dialer/app/DialtactsActivity.java @@ -1515,6 +1515,11 @@ public class DialtactsActivity extends TransactionSafeActivity return findViewById(R.id.contact_tile_drag_shadow_overlay); } + @Override + public void setHasFrequents(boolean hasFrequents) { + // No-op + } + /** * Allows the SpeedDialFragment to attach the drag controller to mRemoveViewContainer once it has * been attached to the activity. diff --git a/java/com/android/dialer/app/list/OldSpeedDialFragment.java b/java/com/android/dialer/app/list/OldSpeedDialFragment.java index caa5e91f0..9b83d54ef 100644 --- a/java/com/android/dialer/app/list/OldSpeedDialFragment.java +++ b/java/com/android/dialer/app/list/OldSpeedDialFragment.java @@ -394,6 +394,8 @@ public class OldSpeedDialFragment extends Fragment public void onLoadFinished(Loader<Cursor> loader, Cursor data) { adapter.setContactCursor(data); fragment.setEmptyViewVisibility(adapter.getCount() == 0); + FragmentUtils.getParentUnsafe(fragment, HostInterface.class) + .setHasFrequents(adapter.getNumFrequents() > 0); } @Override @@ -452,5 +454,7 @@ public class OldSpeedDialFragment extends Fragment void showAllContactsTab(); ImageView getDragShadowOverlay(); + + void setHasFrequents(boolean hasFrequents); } } |