diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-02-24 12:05:27 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-02-24 12:05:27 +0000 |
commit | a39e732c6326f6265a213024bbb6899aea04f10a (patch) | |
tree | 1f33e4d0d1dc86364554138b23edb06d1bc7a9b0 /java/com/android/dialer/app/list/OldSpeedDialFragment.java | |
parent | 3002ad660a95b79a07837d283d1162df727b3221 (diff) | |
parent | ebc59e20e21e78e479fd3fb42993851c10d63b75 (diff) |
Merge "Fixed a few bugs in NUI Main Activity."
Diffstat (limited to 'java/com/android/dialer/app/list/OldSpeedDialFragment.java')
-rw-r--r-- | java/com/android/dialer/app/list/OldSpeedDialFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |