From 962f9fb8481331fcfddb70206aa98c72bd9679d2 Mon Sep 17 00:00:00 2001 From: takahirom Date: Tue, 10 Dec 2024 22:09:34 +0900 Subject: [PATCH] Use Theme_Material_Light_NoActionBar --- .../nowinandroid/uitesthiltmanifest/HiltComponentActivity.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui-test-hilt-manifest/src/main/kotlin/com/google/samples/apps/nowinandroid/uitesthiltmanifest/HiltComponentActivity.kt b/ui-test-hilt-manifest/src/main/kotlin/com/google/samples/apps/nowinandroid/uitesthiltmanifest/HiltComponentActivity.kt index a2f2b7abe..e55e3e038 100644 --- a/ui-test-hilt-manifest/src/main/kotlin/com/google/samples/apps/nowinandroid/uitesthiltmanifest/HiltComponentActivity.kt +++ b/ui-test-hilt-manifest/src/main/kotlin/com/google/samples/apps/nowinandroid/uitesthiltmanifest/HiltComponentActivity.kt @@ -28,7 +28,9 @@ import dagger.hilt.android.AndroidEntryPoint class HiltComponentActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { - setActionBar(null) + // Use a no-action-bar theme to prevent overlapping with the action bar during tests. + // Theme_Material_Light_NoActionBar is the base theme used by the production app. + setTheme(android.R.style.Theme_Material_Light_NoActionBar) super.onCreate(savedInstanceState) } }