summaryrefslogtreecommitdiff
path: root/tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java')
-rw-r--r--tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java b/tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java
index 71b82ae1272..5f0f9fbead9 100644
--- a/tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java
+++ b/tests/framework/base/windowmanager/src/android/server/wm/BlurTests.java
@@ -37,7 +37,6 @@ import android.platform.test.annotations.Presubmit;
import android.provider.Settings;
import android.server.wm.cts.R;
import android.server.wm.settings.SettingsSession;
-import android.view.View;
import android.view.WindowManager;
import androidx.test.rule.ActivityTestRule;
@@ -424,7 +423,7 @@ public class BlurTests extends WindowManagerTestBase {
super.onCreate(savedInstanceState);
getSplashScreen().setOnExitAnimationListener(view -> view.remove());
- setContentView(new View(this));
+ setContentView(R.layout.background_image);
getWindow().setDecorFitsSystemWindows(false);
getWindow().getInsetsController().hide(systemBars());