Update for 13 QPR3
Change-Id: I34d0030e41971bbbc4888dcbd98d16a4d9d2b78a
diff --git a/src/org/lineageos/lineageparts/input/ButtonSettings.java b/src/org/lineageos/lineageparts/input/ButtonSettings.java
index a6fa54f..3799047 100644
--- a/src/org/lineageos/lineageparts/input/ButtonSettings.java
+++ b/src/org/lineageos/lineageparts/input/ButtonSettings.java
@@ -47,7 +47,7 @@
import androidx.preference.PreferenceScreen;
import androidx.preference.SwitchPreference;
-import static com.android.systemui.shared.recents.utilities.Utilities.isTablet;
+import static com.android.systemui.shared.recents.utilities.Utilities.isLargeScreen;
import org.lineageos.lineageparts.R;
import org.lineageos.lineageparts.SettingsPreferenceFragment;
@@ -475,13 +475,13 @@
mEnableTaskbar = findPreference(KEY_ENABLE_TASKBAR);
if (mEnableTaskbar != null) {
- if (!isTablet(getContext()) || !hasNavigationBar()) {
+ if (!isLargeScreen(getContext()) || !hasNavigationBar()) {
mNavigationPreferencesCat.removePreference(mEnableTaskbar);
} else {
mEnableTaskbar.setOnPreferenceChangeListener(this);
mEnableTaskbar.setChecked(LineageSettings.System.getInt(resolver,
LineageSettings.System.ENABLE_TASKBAR,
- isTablet(getContext()) ? 1 : 0) == 1);
+ isLargeScreen(getContext()) ? 1 : 0) == 1);
toggleTaskBarDependencies(mEnableTaskbar.isChecked());
}
}