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:
1 parent
1bec329180
commit
e1d31e5406
128 files changed
+727
-597
No files matched your search
@@ -316,7 +316,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
Optional<BubbleControllers> bubbleControllersOptional = Optional.empty();
|
||||
BubbleBarController.onTaskbarRecreated();
|
||||
final boolean deviceBubbleBarEnabled = enableBubbleBarOnPhones()
|
||||
|| (!mDeviceProfile.isPhone && !mDeviceProfile.isVerticalBarLayout());
|
||||
|| (!mDeviceProfile.getDeviceProperties().isPhone() && !mDeviceProfile.isVerticalBarLayout());
|
||||
if (BubbleBarController.isBubbleBarEnabled() && deviceBubbleBarEnabled
|
||||
&& bubbleBarView != null && isPrimaryDisplay) {
|
||||
Optional<BubbleStashedHandleViewController> bubbleHandleController = Optional.empty();
|
||||
@@ -398,7 +398,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
onViewCreated();
|
||||
}
|
||||
|
||||
/** Updates {@link DeviceProfile} instances for any Taskbar windows. */
|
||||
/** Updates {@link deviceprofile} instances for any Taskbar windows. */
|
||||
public void updateDeviceProfile(DeviceProfile launcherDp) {
|
||||
applyDeviceProfile(launcherDp);
|
||||
mControllers.taskbarOverlayController.updateLauncherDeviceProfile(launcherDp);
|
||||
@@ -591,7 +591,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
*/
|
||||
public boolean isPhoneMode() {
|
||||
return ENABLE_TASKBAR_NAVBAR_UNIFICATION
|
||||
&& mDeviceProfile.isPhone
|
||||
&& mDeviceProfile.getDeviceProperties().isPhone()
|
||||
&& !mDeviceProfile.isTaskbarPresent;
|
||||
}
|
||||
|
||||
@@ -620,11 +620,11 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
|
||||
/** Returns {@code true} iff a tiny version of taskbar is shown on phone. */
|
||||
public boolean isTinyTaskbar() {
|
||||
return enableTinyTaskbar() && mDeviceProfile.isPhone && mDeviceProfile.isTaskbarPresent;
|
||||
return enableTinyTaskbar() && mDeviceProfile.getDeviceProperties().isPhone() && mDeviceProfile.isTaskbarPresent;
|
||||
}
|
||||
|
||||
public boolean isBubbleBarOnPhone() {
|
||||
return enableBubbleBarOnPhones() && enableBubbleBar() && mDeviceProfile.isPhone;
|
||||
return enableBubbleBarOnPhones() && enableBubbleBar() && mDeviceProfile.getDeviceProperties().isPhone();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1310,13 +1310,13 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
|
||||
public void setTaskbarWindowSize(int size) {
|
||||
// In landscape phone button nav mode, we should set the task bar width instead of height
|
||||
// because this is the only case in which the nav bar is not on the display bottom.
|
||||
boolean landscapePhoneButtonNav = isPhoneButtonNavMode() && mDeviceProfile.isLandscape;
|
||||
boolean landscapePhoneButtonNav = isPhoneButtonNavMode() && mDeviceProfile.getDeviceProperties().isLandscape();
|
||||
if ((landscapePhoneButtonNav ? mWindowLayoutParams.width : mWindowLayoutParams.height)
|
||||
== size || mIsDestroyed) {
|
||||
return;
|
||||
}
|
||||
if (size == MATCH_PARENT) {
|
||||
size = mDeviceProfile.heightPx;
|
||||
size = mDeviceProfile.getDeviceProperties().getHeightPx();
|
||||
} else {
|
||||
mLastRequestedNonFullscreenSize = size;
|
||||
if (mIsFullscreen || mIsTaskbarSizeFrozenForAnimatingBubble) {
|
||||
|
||||
Reference in new issue
Block a user