Skip to content

Commit 74494a6

Browse files
committed
Target Android 14
1 parent 4a99427 commit 74494a6

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

atox/src/main/AndroidManifest.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
android:roundIcon="@mipmap/ic_launcher_round"
2020
android:supportsRtl="true"
2121
android:theme="@style/AppTheme">
22-
<service android:name=".ToxService" android:exported="false"/>
22+
<service android:name=".ToxService"
23+
android:exported="false"
24+
android:foregroundServiceType="specialUse">
25+
<property
26+
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
27+
android:value="serverless peer-to-peer messaging" />
28+
</service>
2329

2430
<receiver android:name=".BootReceiver" android:enabled="false" android:exported="false">
2531
<intent-filter>

atox/src/main/kotlin/ui/AvatarImageView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ class AvatarImageView @JvmOverloads constructor(context: Context, attrs: Attribu
6464
invalidate()
6565
}
6666

67-
override fun onDraw(canvas: Canvas?) {
67+
override fun onDraw(canvas: Canvas) {
6868
super.onDraw(canvas)
69-
if (canvas == null || !statusIndicatorVisible) return
69+
if (!statusIndicatorVisible) return
7070

7171
val size = min(width, height).toFloat()
7272

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
sdk-min = "19"
3-
sdk-target = "33"
3+
sdk-target = "34"
44

55
kotlin = "1.9.20"
66
ksp = "1.9.20-1.0.14"

0 commit comments

Comments
 (0)