mirror of
https://github.com/nix-community/nix-on-droid-app.git
synced 2025-12-11 19:41:15 +01:00
Switch a commit() to apply() for shared prefs
This commit is contained in:
parent
60f7aada9e
commit
8ad7a6669c
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ final class TermuxPreferences {
|
|||
}
|
||||
|
||||
static void storeCurrentSession(Context context, TerminalSession session) {
|
||||
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(TermuxPreferences.CURRENT_SESSION_KEY, session.mHandle).commit();
|
||||
PreferenceManager.getDefaultSharedPreferences(context).edit().putString(TermuxPreferences.CURRENT_SESSION_KEY, session.mHandle).apply();
|
||||
}
|
||||
|
||||
static TerminalSession getCurrentSession(TermuxActivity context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue