Extends the criteria width of 2-pane mode
Follow UI spec, we extend criteria width from 600dp -> 720dp Original code checks if there is only one Activity in Activity stack to decide if it's a deep link intent, it has problem at configurationChange. This change checks if the intent is from Settings app itself to decide if it's a deep link intent. Bug: 197716926 Bug: 199808997 Test: Build apk and run on the device. Change-Id: Ide8ef2ccffa87b9ee4fab41ab4f395b00def9bd6
This commit is contained in:
@@ -28,7 +28,7 @@ import androidx.window.embedding.SplitController;
|
||||
public class ActivityEmbeddingUtils {
|
||||
public static final float SPLIT_RATIO = 0.5f;
|
||||
// The smallest value of current width of the window when the split should be used.
|
||||
private static final float MIN_CURRENT_SCREEN_SPLIT_WIDTH_DP = 600f;
|
||||
private static final float MIN_CURRENT_SCREEN_SPLIT_WIDTH_DP = 720f;
|
||||
// The smallest value of the smallest-width (sw) of the window in any rotation when
|
||||
// the split should be used.
|
||||
private static final float MIN_SMALLEST_SCREEN_SPLIT_WIDTH_DP = 600f;
|
||||
|
Reference in New Issue
Block a user