Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Undeletable token #35

Merged
merged 2 commits into from
May 14, 2018
Merged

Undeletable token #35

merged 2 commits into from
May 14, 2018

Conversation

nilsbehlen
Copy link
Member

according to #34

according to #34
@@ -284,11 +282,11 @@ public boolean onActionItemClicked(final ActionMode mode, MenuItem item) {
final Token currToken = tokenlistadapter.getCurrentSelection();
final int id = item.getItemId();
if (id == R.id.delete_token2) {
/* if (currToken.isPersistent()) {
if (currToken.isUndeletable()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To my understanding we show a warning message, that the token can not be deleted, if the user tries to delete the token.
Is it possible to gray out the delete button in the first place?

@nilsbehlen
Copy link
Member Author

The delete button is now grey for undeletable tokens and unclickable, so there will be no message displayed.

Copy link
Member

@cornelinux cornelinux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me...

@cornelinux cornelinux merged commit bb52ecd into master May 14, 2018
@cornelinux cornelinux deleted the persistenttoken branch May 14, 2018 11:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants