summaryrefslogtreecommitdiff
path: root/core/java/android/window/SplashScreenView.java
diff options
context:
space:
mode:
authorwilsonshih <wilsonshih@google.com>2021-06-21 18:07:21 +0800
committerwilsonshih <wilsonshih@google.com>2021-06-24 11:10:07 +0800
commit0797c862192bcb8c777e4e548532f2d17f9f9d62 (patch)
tree58b9b5fd44cede3b029d38cd18a3d1783ed83a36 /core/java/android/window/SplashScreenView.java
parent598f0602e2a2835b5da703567137f822459ec246 (diff)
Clear padding and background after create view from context.
When create view with Context, there will also load some view attributes from the Context and pre-set to the View object, to ensure the splash screen view not affected by those attributes, clear padding and background after create those view objects. Bug: 191339594 Test: manual launch several apps from Launcher/Notification. Tets: atest SplashscreenTests Change-Id: I05be9c296a04cd49a0896ad8aef57643720d60ce
Diffstat (limited to 'core/java/android/window/SplashScreenView.java')
-rw-r--r--core/java/android/window/SplashScreenView.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/window/SplashScreenView.java b/core/java/android/window/SplashScreenView.java
index 4a3bf91645f2..148986a558e7 100644
--- a/core/java/android/window/SplashScreenView.java
+++ b/core/java/android/window/SplashScreenView.java
@@ -292,6 +292,7 @@ public final class SplashScreenView extends FrameLayout {
private SurfaceView createSurfaceView(@NonNull SplashScreenView view) {
final SurfaceView surfaceView = new SurfaceView(view.getContext());
+ surfaceView.setPadding(0, 0, 0, 0);
if (mSurfacePackage == null) {
if (DEBUG) {
Log.d(TAG,