Revert "Revert "Moving DeviceProfile properties into DevicePrope..."
Revert submission 33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK Reason for revert: Error is fixed Reverted changes: /q/submissionid:33716851-revert-33672643-DataDeviceProfile1-XHYRAPLEBK Change-Id: Ib86824134955903c11e51e52dbfd6368aba1cd50
This commit is contained in:
committed by
Sebastian Franco
parent
1bec329180
commit
e1d31e5406
@@ -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.isTwoPanels);
|
||||
.supportedProfiles.stream().anyMatch(dp -> dp.getDeviceProperties().isTwoPanels());
|
||||
Toast.makeText(launcher, isFoldable
|
||||
? R.string.app_pair_needs_unfold
|
||||
: R.string.app_pair_unlaunchable_at_screen_size,
|
||||
|
||||
Reference in New Issue
Block a user