Skip to content

Commit

Permalink
Target Android 14
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Nov 6, 2023
1 parent 4a99427 commit 74494a6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion atox/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<service android:name=".ToxService" android:exported="false"/>
<service android:name=".ToxService"
android:exported="false"
android:foregroundServiceType="specialUse">
<property
android:name="android.app.PROPERTY_SPECIAL_USE_FGS_SUBTYPE"
android:value="serverless peer-to-peer messaging" />
</service>

<receiver android:name=".BootReceiver" android:enabled="false" android:exported="false">
<intent-filter>
Expand Down
4 changes: 2 additions & 2 deletions atox/src/main/kotlin/ui/AvatarImageView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ class AvatarImageView @JvmOverloads constructor(context: Context, attrs: Attribu
invalidate()
}

override fun onDraw(canvas: Canvas?) {
override fun onDraw(canvas: Canvas) {
super.onDraw(canvas)
if (canvas == null || !statusIndicatorVisible) return
if (!statusIndicatorVisible) return

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

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
sdk-min = "19"
sdk-target = "33"
sdk-target = "34"

kotlin = "1.9.20"
ksp = "1.9.20-1.0.14"
Expand Down

0 comments on commit 74494a6

Please sign in to comment.