Revert "Moving DeviceProfile properties into DeviceProperties da..."

Revert submission 33672643-DataDeviceProfile1

Reason for revert: Droidmonitor created revert due to b/419867875. Will be verifying through ABTD before submission.

Fix: 419867875

Reverted changes: /q/submissionid:33672643-DataDeviceProfile1

Change-Id: Icb66aefbbcee24e05806b2139923e1f2ea1c65e3
This commit is contained in:
Priyanka Advani (xWF)
2025-05-23 13:53:00 -07:00
committed by Android (Google) Code Review
parent e1111e28c2
commit 7705e92d93
127 changed files with 596 additions and 726 deletions
@@ -160,7 +160,7 @@ public class ItemClickHandler {
if (!isApp1Launchable || !isApp2Launchable) {
// App pair is unlaunchable due to screen size.
boolean isFoldable = InvariantDeviceProfile.INSTANCE.get(launcher)
.supportedProfiles.stream().anyMatch(dp -> dp.getDeviceProperties().isTwoPanels());
.supportedProfiles.stream().anyMatch(dp -> dp.isTwoPanels);
Toast.makeText(launcher, isFoldable
? R.string.app_pair_needs_unfold
: R.string.app_pair_unlaunchable_at_screen_size,