Commit 497d5a91 authored by Tatiana Gornak's avatar Tatiana Gornak Committed by Commit Bot

Password Manager settings page: announce credentials deletion.

After the user clicks bin icon, display the toast that notifies about
the deletion.

BUG=764078

Change-Id: Ie50bea0d7d7a730e1522ca85bd7e136829e5e14a
Reviewed-on: https://chromium-review.googlesource.com/670863Reviewed-by: default avatarMaria Khomenko <mariakhomenko@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Tatiana Gornak <melandory@chromium.org>
Cr-Commit-Position: refs/heads/master@{#502909}
parent 5c27449f
...@@ -261,6 +261,9 @@ public class PasswordEntryEditor extends Fragment { ...@@ -261,6 +261,9 @@ public class PasswordEntryEditor extends Fragment {
if (!mException) { if (!mException) {
passwordUIView.removeSavedPasswordEntry(mID); passwordUIView.removeSavedPasswordEntry(mID);
passwordUIView.destroy(); passwordUIView.destroy();
Toast.makeText(getActivity().getApplicationContext(), R.string.deleted,
Toast.LENGTH_SHORT)
.show();
getActivity().finish(); getActivity().finish();
} }
} }
...@@ -270,6 +273,9 @@ public class PasswordEntryEditor extends Fragment { ...@@ -270,6 +273,9 @@ public class PasswordEntryEditor extends Fragment {
if (mException) { if (mException) {
passwordUIView.removeSavedPasswordException(mID); passwordUIView.removeSavedPasswordException(mID);
passwordUIView.destroy(); passwordUIView.destroy();
Toast.makeText(getActivity().getApplicationContext(), R.string.deleted,
Toast.LENGTH_SHORT)
.show();
getActivity().finish(); getActivity().finish();
} }
} }
......
...@@ -125,6 +125,9 @@ CHAR-LIMIT guidelines: ...@@ -125,6 +125,9 @@ CHAR-LIMIT guidelines:
<release allow_pseudo="false" seq="1"> <release allow_pseudo="false" seq="1">
<messages fallback_to_english="true"> <messages fallback_to_english="true">
<!-- Generic strings --> <!-- Generic strings -->
<message name="IDS_DELETED" desc='Text that announces to the user that something was deleted.'>
Deleted
</message>
<message name="IDS_OK" desc="Label for a confirm button. Used in multiple contexts. [CHAR-LIMIT=20]"> <message name="IDS_OK" desc="Label for a confirm button. Used in multiple contexts. [CHAR-LIMIT=20]">
OK OK
</message> </message>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment