Skip to content

Commit

Permalink
Fix issue can’t toggle VR mode
Browse files Browse the repository at this point in the history
Using editor.commit() instead of editor.apply() because app will restart after changing mode, so mode need to be saved before restarting
  • Loading branch information
bangdc90 authored Sep 27, 2024
1 parent 07739f1 commit 4772b03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void setVRSetting(boolean v)
SharedPreferences prefs = getSharedPreferences("general", Context.MODE_PRIVATE);
SharedPreferences.Editor editor = prefs.edit();
editor.putBoolean("vr-mode", v);
editor.apply();
editor.commit();
}

public static int getChannel(Context context) {
Expand Down

0 comments on commit 4772b03

Please sign in to comment.