Add support for PiP on Oreo

This commit is contained in:
Cameron Gutman
2017-11-09 23:28:22 -08:00
parent 74ed95871b
commit 8f1d3ae04e
6 changed files with 39 additions and 1 deletions
@@ -68,6 +68,13 @@ public class StreamSettings extends Activity {
screen.removePreference(category);
}
// Remove PiP mode on devices pre-Oreo
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
PreferenceCategory category =
(PreferenceCategory) findPreference("category_basic_settings");
category.removePreference(findPreference("checkbox_enable_pip"));
}
// Remove HDR preference for devices below Nougat
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.N) {
LimeLog.info("Excluding HDR toggle based on OS");