Merge "Revert "Support highlightable Settings homepage menu for 2-pane"" into sc-v2-dev

This commit is contained in:
Greg Kaiser
2021-10-08 14:48:14 +00:00
committed by Android (Google) Code Review
18 changed files with 91 additions and 775 deletions

View File

@@ -62,12 +62,4 @@ public class ActivityEmbeddingUtils {
return isFlagEnabled && isSplitSupported;
}
/** Whether the screen meets two-pane resolution. */
public static boolean isTwoPaneResolution(Context context) {
final Context appContext = context.getApplicationContext();
final DisplayMetrics dm = appContext.getResources().getDisplayMetrics();
return dm.widthPixels >= getMinCurrentScreenSplitWidthPx(appContext)
&& dm.heightPixels >= getMinSmallestScreenSplitWidthPx(appContext);
}
}