diff options
author | uabdullah <uabdullah@google.com> | 2018-03-08 18:24:33 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-08 18:26:58 -0800 |
commit | 362350a54359c22e94c25edc008978645c8e6ee9 (patch) | |
tree | ca2ca0fee43786bbcfb157317778c86d99d2acbc /java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java | |
parent | fd4c9f75aa2eba3e6a896d107f05ff370c2ad2b1 (diff) |
Implement non-ui logic for delete/undo delete voicemails
When a voicemail is deleted we have to allow the user the option of cancelling the deleting of voicemail. This is done by showing the user a snack bar which when a user taps will prevent the voicemail from being deleted.
This CL only adds the underlying logic for the delete/undelete to take place via a ScheduledFuture, it does not fix all the UI issues that come with it, which will be sent in a follow up CL, issues such as:
-Updating the group label when a delete/undo happens
-Updating the entries above and below when a delete/undo happens
-Showing the empty view immediately when a user deletes a single voicemail
-Removing the empty view immediately when a user taps undo
-Updating tests
Bug: 69858266
Test: Manual
PiperOrigin-RevId: 188424489
Change-Id: Iecf5cb7be5b80fa5e91acaad3a7cc4a6c8702521
Diffstat (limited to 'java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java')
-rw-r--r-- | java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java b/java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java index 3a5e72b6b..72f0ab542 100644 --- a/java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java +++ b/java/com/android/dialer/voicemail/listui/NewVoicemailFragment.java @@ -205,7 +205,7 @@ public final class NewVoicemailFragment extends Fragment implements LoaderCallba /** Shows the view when there are no voicemails to be displayed * */ private void showEmptyVoicemailFragmentView() { - LogUtil.enterBlock("NewVoicemailFragmentListener.showEmptyVoicemailFragmentView"); + LogUtil.enterBlock("NewVoicemailFragment.showEmptyVoicemailFragmentView"); showView(emptyContentView); @@ -215,7 +215,7 @@ public final class NewVoicemailFragment extends Fragment implements LoaderCallba } private void showView(View view) { - LogUtil.i("NewVoicemailFragmentListener.showView", "Showing view: " + view); + LogUtil.i("NewVoicemailFragment.showView", "Showing view: " + view); emptyContentView.setVisibility(view == emptyContentView ? View.VISIBLE : View.GONE); recyclerView.setVisibility(view == recyclerView ? View.VISIBLE : View.GONE); } |