Cleanup API checks for P, Q, and R.
Test: Build with gradle Flag: NA Change-Id: I3ef17090741d14bebd76cf09cf3dc5ac4f11e686
This commit is contained in:
1 parent
a601341ff5
commit
b922dccbf5
67 files changed
+117
-382
No files matched your search
@@ -52,7 +52,6 @@ import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.android.launcher3.BuildConfig;
|
||||
import com.android.launcher3.LauncherFiles;
|
||||
import com.android.launcher3.R;
|
||||
import com.android.launcher3.Utilities;
|
||||
import com.android.launcher3.model.WidgetsModel;
|
||||
import com.android.launcher3.states.RotationHelper;
|
||||
import com.android.launcher3.uioverrides.flags.DeveloperOptionsUI;
|
||||
@@ -120,7 +119,7 @@ public class SettingsActivity extends FragmentActivity
|
||||
}
|
||||
|
||||
private boolean startPreference(String fragment, Bundle args, String key) {
|
||||
if (Utilities.ATLEAST_P && getSupportFragmentManager().isStateSaved()) {
|
||||
if (getSupportFragmentManager().isStateSaved()) {
|
||||
// Sometimes onClick can come after onPause because of being posted on the handler.
|
||||
// Skip starting new preferences in that case.
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user