Added Focus Search on App Start

Renamed key

Removed unnecessary code
This commit is contained in:
Praveen Kumar 2021-11-04 15:41:17 +05:30
parent adfc472a39
commit 0652eaa5cd
4 changed files with 26 additions and 2 deletions

View file

@ -257,6 +257,14 @@ public class Preferences {
return null;
}
public boolean getFocusSearchEnabled() {
return _prefs.getBoolean("pref_focus_search", false);
}
public void setFocusSearch(boolean enabled) {
_prefs.edit().putBoolean("pref_focus_search", enabled).apply();
}
public void setBackupsLocation(Uri location) {
_prefs.edit().putString("pref_backups_location", location == null ? null : location.toString()).apply();
}