Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add overflow toast and fix edit menu option.
- Loading branch information
1 parent
3a06412
commit 0711a22
Showing
5 changed files
with
61 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/org/thoughtcrime/securesms/keyvalue/UiHints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.thoughtcrime.securesms.keyvalue; | ||
|
||
public class UiHints { | ||
|
||
private static final String HAS_SEEN_GROUP_SETTINGS_MENU_TOAST = "uihints.has_seen_group_settings_menu_toast"; | ||
|
||
private final KeyValueStore store; | ||
|
||
UiHints(KeyValueStore store) { | ||
this.store = store; | ||
} | ||
|
||
void onFirstEverAppLaunch() { | ||
markHasSeenGroupSettingsMenuToast(); | ||
} | ||
|
||
public void markHasSeenGroupSettingsMenuToast() { | ||
store.beginWrite().putBoolean(HAS_SEEN_GROUP_SETTINGS_MENU_TOAST, true).apply(); | ||
} | ||
|
||
public boolean hasSeenGroupSettingsMenuToast() { | ||
return store.getBoolean(HAS_SEEN_GROUP_SETTINGS_MENU_TOAST, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters