mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-27 06:52:44 +00:00
Don't show PiP option on devices where PiP is disabled
This commit is contained in:
parent
d1b93d4011
commit
59d71ffdcf
@ -156,8 +156,9 @@ public class StreamSettings extends Activity {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove PiP mode on devices pre-Oreo
|
// Remove PiP mode on devices pre-Oreo or where the feature is not available (some low RAM devices)
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O ||
|
||||||
|
!getActivity().getPackageManager().hasSystemFeature("android.software.picture_in_picture")) {
|
||||||
PreferenceCategory category =
|
PreferenceCategory category =
|
||||||
(PreferenceCategory) findPreference("category_basic_settings");
|
(PreferenceCategory) findPreference("category_basic_settings");
|
||||||
category.removePreference(findPreference("checkbox_enable_pip"));
|
category.removePreference(findPreference("checkbox_enable_pip"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user