Skip to content

Commit 74006b6

Browse files
committed
Add OSS dialog to app
1 parent 7144f1b commit 74006b6

File tree

3 files changed

+38
-2
lines changed

3 files changed

+38
-2
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@
8181
<!-- need to use Theme.AppCompat -->
8282
<activity
8383
android:name="com.google.android.gms.oss.licenses.OssLicensesMenuActivity"
84-
android:theme="@style/Theme.AppCompat" />
84+
android:theme="@style/AppCompatAndroidify" />
8585

8686
<!-- needs to use Theme.AppCompat -->
8787
<activity
8888
android:name="com.google.android.gms.oss.licenses.OssLicensesActivity"
89-
android:theme="@style/Theme.AppCompat" />
89+
android:theme="@style/AppCompatAndroidify" />
9090
</application>
9191

9292
</manifest>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2025 The Android Open Source Project
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
https://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<resources>
18+
19+
<style name="AppCompatAndroidify" parent="Theme.AppCompat.DayNight">
20+
<item name="android:windowTranslucentStatus">false</item>
21+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
22+
<item name="android:statusBarColor">@android:color/white</item>
23+
<item name="android:fitsSystemWindows">true</item>
24+
<!-- https://github.com/google/play-services-plugins/issues/296 -->
25+
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
26+
<item name="android:windowLightStatusBar">true</item>
27+
</style>
28+
</resources>

app/src/main/res/values/themes.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,12 @@
1717
<resources>
1818

1919
<style name="Theme.Androidify" parent="android:Theme.Material.Light.NoActionBar" />
20+
21+
<style name="AppCompatAndroidify" parent="Theme.AppCompat.DayNight">
22+
<item name="android:windowTranslucentStatus">false</item>
23+
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
24+
<item name="android:statusBarColor">@android:color/white</item>
25+
<item name="android:fitsSystemWindows">true</item>
26+
<item name="android:windowLightStatusBar">true</item>
27+
</style>
2028
</resources>

0 commit comments

Comments
 (0)