@@ -977,16 +977,21 @@ public void setInitialDisplaySize(Display display, int width, int height) {
977977 mStatusBarHeight = mContext .getResources ().getDimensionPixelSize (
978978 com .android .internal .R .dimen .status_bar_height );
979979
980- mNavigationBarHeightForRotation [Surface .ROTATION_0 ] =
981- mNavigationBarHeightForRotation [Surface .ROTATION_90 ] =
982- mNavigationBarHeightForRotation [Surface .ROTATION_180 ] =
983- mNavigationBarHeightForRotation [Surface .ROTATION_270 ] =
980+ // Height of the navigation bar when presented horizontally at bottom
981+ mNavigationBarHeightForRotation [mPortraitRotation ] =
982+ mNavigationBarHeightForRotation [mUpsideDownRotation ] =
984983 mContext .getResources ().getDimensionPixelSize (
985984 com .android .internal .R .dimen .navigation_bar_height );
986- mNavigationBarWidthForRotation [Surface .ROTATION_0 ] =
987- mNavigationBarWidthForRotation [Surface .ROTATION_90 ] =
988- mNavigationBarWidthForRotation [Surface .ROTATION_180 ] =
989- mNavigationBarWidthForRotation [Surface .ROTATION_270 ] =
985+ mNavigationBarHeightForRotation [mLandscapeRotation ] =
986+ mNavigationBarHeightForRotation [mSeascapeRotation ] =
987+ mContext .getResources ().getDimensionPixelSize (
988+ com .android .internal .R .dimen .navigation_bar_height_landscape );
989+
990+ // Width of the navigation bar when presented vertically along one side
991+ mNavigationBarWidthForRotation [mPortraitRotation ] =
992+ mNavigationBarWidthForRotation [mUpsideDownRotation ] =
993+ mNavigationBarWidthForRotation [mLandscapeRotation ] =
994+ mNavigationBarWidthForRotation [mSeascapeRotation ] =
990995 mContext .getResources ().getDimensionPixelSize (
991996 com .android .internal .R .dimen .navigation_bar_width );
992997
0 commit comments