mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-11-08 19:46:10 +01:00
Changed: Store termux-widget token synchronously to the SharedPreferences file on creation
Attempt to solve termux/termux-widget#16
This commit is contained in:
parent
fefbf2ec03
commit
4f66786b98
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ public class TermuxWidgetAppSharedPreferences {
|
|||
String token = SharedPreferenceUtils.getString(mSharedPreferences, TERMUX_WIDGET_APP.KEY_TOKEN, null, true);
|
||||
if (token == null) {
|
||||
token = UUID.randomUUID().toString();
|
||||
SharedPreferenceUtils.setString(mSharedPreferences, TERMUX_WIDGET_APP.KEY_TOKEN, token, false);
|
||||
SharedPreferenceUtils.setString(mSharedPreferences, TERMUX_WIDGET_APP.KEY_TOKEN, token, true);
|
||||
}
|
||||
return token;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue