Skip to content

Commit

Permalink
pain
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Feb 23, 2024
1 parent e9d09bd commit 4733dba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ private void refresh() {
((SwitchPreferenceCompat) findPreference("loggerService")).setChecked(GlobalConfig.get(GlobalConfig.KEY_LOGGER_SERVICE));
((SwitchPreferenceCompat) findPreference("shaderJit")).setChecked(GlobalConfig.get(GlobalConfig.KEY_SHADER_JIT));
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
((SwitchPreferenceCompat) findPreference("pictureInPicture").setEnabled(true));
findPreference("pictureInPicture").setEnabled(true);
} else {
((SwitchPreferenceCompat) findPreference("pictureInPicture").setEnabled(false));
((SwitchPreferenceCompat) findPreference("pictureInPicture").setSummary("Your Device isn't supported this feature"));
findPreference("pictureInPicture").setEnabled(false);
findPreference("pictureInPicture").setSummary("Your device does not support this feature");
}
}
}

0 comments on commit 4733dba

Please sign in to comment.