mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Changed to defaultSharedPreferences
This commit is contained in:
parent
f995ea9cec
commit
c48d742fa3
1 changed files with 2 additions and 3 deletions
|
|
@ -9,7 +9,6 @@ import androidx.preference.PreferenceManager;
|
|||
import com.cappielloantonio.play.helper.ThemeHelper;
|
||||
import com.cappielloantonio.play.subsonic.Subsonic;
|
||||
import com.cappielloantonio.play.subsonic.SubsonicPreferences;
|
||||
import com.cappielloantonio.play.util.Constants;
|
||||
import com.cappielloantonio.play.util.Preferences;
|
||||
import com.google.android.material.color.DynamicColors;
|
||||
|
||||
|
|
@ -30,7 +29,7 @@ public class App extends Application {
|
|||
|
||||
instance = new App();
|
||||
context = getApplicationContext();
|
||||
preferences = getSharedPreferences(Constants.SHARED_PREF_KEY, Context.MODE_PRIVATE);
|
||||
preferences = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
}
|
||||
|
||||
public static App getInstance() {
|
||||
|
|
@ -58,7 +57,7 @@ public class App extends Application {
|
|||
|
||||
public SharedPreferences getPreferences() {
|
||||
if (preferences == null) {
|
||||
preferences = getSharedPreferences(Constants.SHARED_PREF_KEY, Context.MODE_PRIVATE);
|
||||
preferences = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
}
|
||||
|
||||
return preferences;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue