Loading packages/SystemUI/src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java +2 −3 Original line number Diff line number Diff line Loading @@ -485,9 +485,8 @@ public class ImmersiveModeConfirmation implements CoreStartable, CommandQueue.Ca final boolean intersectsTopCutout = topDisplayCutout.intersects( width - (windowWidth / 2), 0, width + (windowWidth / 2), topDisplayCutout.bottom); if (mClingWindow != null && (windowWidth < 0 || (width > 0 && intersectsTopCutout))) { final View iconView = mClingWindow.findViewById(R.id.immersive_cling_icon); if (windowWidth < 0 || (width > 0 && intersectsTopCutout)) { final View iconView = findViewById(R.id.immersive_cling_icon); RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) iconView.getLayoutParams(); lp.topMargin = topDisplayCutout.bottom; Loading services/core/java/com/android/server/wm/ImmersiveModeConfirmation.java +2 −3 Original line number Diff line number Diff line Loading @@ -408,9 +408,8 @@ public class ImmersiveModeConfirmation { final boolean intersectsTopCutout = topDisplayCutout.intersects( width - (windowWidth / 2), 0, width + (windowWidth / 2), topDisplayCutout.bottom); if (mClingWindow != null && (windowWidth < 0 || (width > 0 && intersectsTopCutout))) { final View iconView = mClingWindow.findViewById(R.id.immersive_cling_icon); if (windowWidth < 0 || (width > 0 && intersectsTopCutout)) { final View iconView = findViewById(R.id.immersive_cling_icon); RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) iconView.getLayoutParams(); lp.topMargin = topDisplayCutout.bottom; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/ImmersiveModeConfirmation.java +2 −3 Original line number Diff line number Diff line Loading @@ -485,9 +485,8 @@ public class ImmersiveModeConfirmation implements CoreStartable, CommandQueue.Ca final boolean intersectsTopCutout = topDisplayCutout.intersects( width - (windowWidth / 2), 0, width + (windowWidth / 2), topDisplayCutout.bottom); if (mClingWindow != null && (windowWidth < 0 || (width > 0 && intersectsTopCutout))) { final View iconView = mClingWindow.findViewById(R.id.immersive_cling_icon); if (windowWidth < 0 || (width > 0 && intersectsTopCutout)) { final View iconView = findViewById(R.id.immersive_cling_icon); RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) iconView.getLayoutParams(); lp.topMargin = topDisplayCutout.bottom; Loading
services/core/java/com/android/server/wm/ImmersiveModeConfirmation.java +2 −3 Original line number Diff line number Diff line Loading @@ -408,9 +408,8 @@ public class ImmersiveModeConfirmation { final boolean intersectsTopCutout = topDisplayCutout.intersects( width - (windowWidth / 2), 0, width + (windowWidth / 2), topDisplayCutout.bottom); if (mClingWindow != null && (windowWidth < 0 || (width > 0 && intersectsTopCutout))) { final View iconView = mClingWindow.findViewById(R.id.immersive_cling_icon); if (windowWidth < 0 || (width > 0 && intersectsTopCutout)) { final View iconView = findViewById(R.id.immersive_cling_icon); RelativeLayout.LayoutParams lp = (RelativeLayout.LayoutParams) iconView.getLayoutParams(); lp.topMargin = topDisplayCutout.bottom; Loading