mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Settings reset improvements
This commit is contained in:
parent
52d1ae9d6f
commit
a0122bb95c
1 changed files with 8 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ import com.cappielloantonio.play.ui.activity.base.BaseActivity;
|
||||||
import com.cappielloantonio.play.ui.dialog.ConnectionAlertDialog;
|
import com.cappielloantonio.play.ui.dialog.ConnectionAlertDialog;
|
||||||
import com.cappielloantonio.play.ui.dialog.ServerUnreachableDialog;
|
import com.cappielloantonio.play.ui.dialog.ServerUnreachableDialog;
|
||||||
import com.cappielloantonio.play.ui.fragment.PlayerBottomSheetFragment;
|
import com.cappielloantonio.play.ui.fragment.PlayerBottomSheetFragment;
|
||||||
|
import com.cappielloantonio.play.util.Constants;
|
||||||
import com.cappielloantonio.play.util.Preferences;
|
import com.cappielloantonio.play.util.Preferences;
|
||||||
import com.cappielloantonio.play.viewmodel.MainViewModel;
|
import com.cappielloantonio.play.viewmodel.MainViewModel;
|
||||||
import com.google.android.material.bottomnavigation.BottomNavigationView;
|
import com.google.android.material.bottomnavigation.BottomNavigationView;
|
||||||
|
|
@ -265,6 +266,13 @@ public class MainActivity extends BaseActivity {
|
||||||
Preferences.setPassword(null);
|
Preferences.setPassword(null);
|
||||||
Preferences.setServer(null);
|
Preferences.setServer(null);
|
||||||
Preferences.setUser(null);
|
Preferences.setUser(null);
|
||||||
|
|
||||||
|
// TODO Enter all settings to be reset
|
||||||
|
Preferences.setServerId(null);
|
||||||
|
Preferences.setPlaybackSpeed(Constants.MEDIA_PLAYBACK_SPEED_100);
|
||||||
|
Preferences.setSkipSilenceMode(false);
|
||||||
|
Preferences.setDataSavingMode(false);
|
||||||
|
Preferences.setStarredSyncEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void resetMusicSession() {
|
private void resetMusicSession() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue