Skip to content

Commit f7714d6

Browse files
fix: add notification bar theme color (#413)
* notification bar background color fix * Update build.gradle * Update AndroidManifest.xml * Update AndroidManifest.xml * clean up layouts
1 parent cdfa22f commit f7714d6

9 files changed

+19
-14
lines changed

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ dependencies {
476476
implementation fileTree(dir: 'libs', include: ['*.jar'])
477477
implementation platform('org.jetbrains.kotlin:kotlin-bom:1.9.24')
478478
implementation 'androidx.browser:browser:1.8.0'
479+
implementation 'androidx.appcompat:appcompat:1.7.1'
479480
implementation 'androidx.core:core:1.13.1'
480481
implementation 'androidx.activity:activity:1.9.0'
481482
implementation 'androidx.fragment:fragment:1.7.1'

src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
android:screenOrientation="portrait"
4444
android:configChanges="orientation|screenSize"
4545
android:launchMode="singleTask"
46+
android:theme="@style/Theme.AppCompat.NoActionBar"
4647
android:exported="true"
4748
tools:ignore="DiscouragedApi">
4849
<intent-filter android:autoVerify="true">

src/main/res/layout/connection_error.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools"
34
android:layout_width="fill_parent"
45
android:layout_height="wrap_content"
56
android:orientation="vertical"
@@ -48,7 +49,8 @@
4849
style="@style/borderlessButton"
4950
android:onClick="onClickMoreInfo"
5051
android:text="@string/btnMoreInfo"
51-
android:textAllCaps="true" />
52+
android:textAllCaps="true"
53+
tools:ignore="UsingOnClickInXml" />
5254

5355
<View
5456
android:layout_width="0dp"
@@ -60,7 +62,8 @@
6062
style="@style/borderlessButton"
6163
android:onClick="onClickRetry"
6264
android:text="@string/btnRetry"
63-
android:textAllCaps="true" />
65+
android:textAllCaps="true"
66+
tools:ignore="UsingOnClickInXml" />
6467
</LinearLayout>
6568
</RelativeLayout>
6669

src/main/res/layout/custom_server_form.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
android:layout_toStartOf="@+id/btnSaveSettings"
2828
android:onClick="cancelSettingsEdit"
2929
android:text="@string/btnCancel"
30-
tools:ignore="OnClick" />
30+
tools:ignore="OnClick,UsingOnClickInXml" />
3131
<!-- OnClick is ignored because lint generates error
3232
incorrectly. Test with future build tool versions
3333
to see if this exception can be removed -->
@@ -38,5 +38,5 @@
3838
android:layout_alignParentBottom="true"
3939
android:onClick="verifyAndSave"
4040
android:text="@string/btnSave"
41-
tools:ignore="OnClick" />
41+
tools:ignore="OnClick,UsingOnClickInXml" />
4242
</RelativeLayout>

src/main/res/layout/free_space_warning.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
style="@style/standardButton"
3838
android:text="@string/btnQuit"
3939
android:onClick="evtQuit"
40-
tools:ignore="OnClick"
40+
tools:ignore="OnClick,UsingOnClickInXml"
4141
android:layout_toStartOf="@+id/btnFreeSpaceContinue"
4242
android:layout_alignParentBottom="true"/>
4343
<!-- OnClick is ignored because lint generates error
@@ -47,7 +47,7 @@
4747
style="@style/standardButton"
4848
android:text="@string/btnContinue"
4949
android:onClick="evtContinue"
50-
tools:ignore="OnClick"
50+
tools:ignore="OnClick,UsingOnClickInXml"
5151
android:layout_alignParentEnd="true"
5252
android:layout_alignParentBottom="true"/>
5353
</RelativeLayout>

src/main/res/layout/request_app_domain_association.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
style="@style/borderlessButton"
4646
android:onClick="onClickNegative"
4747
android:text="@string/domainAppAssociationRequestDenyButton"
48-
tools:ignore="OnClick"
48+
tools:ignore="OnClick,UsingOnClickInXml"
4949
android:layout_marginTop="10dp"/>
5050

5151
<View
@@ -61,7 +61,7 @@
6161
android:onClick="onClickOk"
6262
android:text="@string/domainAppAssociationRequestOkButton"
6363
android:textColor="#ffffff"
64-
tools:ignore="OnClick" />
64+
tools:ignore="OnClick,UsingOnClickInXml" />
6565

6666
</LinearLayout>
6767

src/main/res/layout/request_location_permission.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
style="@style/borderlessButton"
5656
android:onClick="onClickNegative"
5757
android:text="@string/locRequestDenyButton"
58-
tools:ignore="OnClick" />
58+
tools:ignore="OnClick,UsingOnClickInXml" />
5959

6060
<View
6161
android:layout_width="0dp"
@@ -67,7 +67,7 @@
6767
style="@style/borderlessButton"
6868
android:onClick="onClickOk"
6969
android:text="@string/locRequestOkButton"
70-
tools:ignore="OnClick" />
70+
tools:ignore="OnClick,UsingOnClickInXml" />
7171
</LinearLayout>
7272

7373
</RelativeLayout>

src/main/res/layout/request_send_sms_permission.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
style="@style/borderlessButton"
5656
android:onClick="onClickDeny"
5757
android:text="@string/sendSmsRequestDenyButton"
58-
tools:ignore="OnClick" />
58+
tools:ignore="OnClick,UsingOnClickInXml" />
5959

6060
<View
6161
android:layout_width="0dp"
@@ -67,7 +67,7 @@
6767
style="@style/borderlessButton"
6868
android:onClick="onClickAllow"
6969
android:text="@string/sendSmsRequestAllowButton"
70-
tools:ignore="OnClick" />
70+
tools:ignore="OnClick,UsingOnClickInXml" />
7171
</LinearLayout>
7272

7373
</RelativeLayout>

src/main/res/layout/request_storage_permission.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
style="@style/borderlessButton"
5656
android:onClick="onClickDeny"
5757
android:text="@string/storageRequestDenyButton"
58-
tools:ignore="OnClick" />
58+
tools:ignore="OnClick,UsingOnClickInXml" />
5959

6060
<View
6161
android:layout_width="0dp"
@@ -67,7 +67,7 @@
6767
style="@style/borderlessButton"
6868
android:onClick="onClickAllow"
6969
android:text="@string/storageRequestAllowButton"
70-
tools:ignore="OnClick" />
70+
tools:ignore="OnClick,UsingOnClickInXml" />
7171
</LinearLayout>
7272

7373
</RelativeLayout>

0 commit comments

Comments
 (0)