mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-09 07:29:52 +00:00
use notification logo from separate xml file
ic_notification.xml was not existing/not used in android talk app, but on brander there is code to replace ic_notification.xml with a custom icon. ic_notification.xml is now created with the same icon as for ic_logo.xml and used for notifications. So from now on branded versions have the ability to overwrite the icon. Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
8a320815ee
commit
dfe07979a9
@ -519,7 +519,7 @@ class NotificationWorker(context: Context, workerParams: WorkerParameters) : Wor
|
||||
.setPriority(NotificationCompat.PRIORITY_HIGH)
|
||||
.setCategory(category)
|
||||
.setLargeIcon(getLargeIcon())
|
||||
.setSmallIcon(R.drawable.ic_logo)
|
||||
.setSmallIcon(R.drawable.ic_notification)
|
||||
.setContentTitle(contentTitle)
|
||||
.setContentText(contentText)
|
||||
.setSubText(baseUrl)
|
||||
|
23
app/src/main/res/drawable/ic_notification.xml
Normal file
23
app/src/main/res/drawable/ic_notification.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<!--
|
||||
~ Nextcloud Talk - Android Client
|
||||
~
|
||||
~ SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH <https://nextcloud.com/trademarks/>
|
||||
~ SPDX-License-Identifier: LicenseRef-NextcloudTrademarks
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="128dp"
|
||||
android:height="128dp"
|
||||
android:autoMirrored="true"
|
||||
android:viewportWidth="128"
|
||||
android:viewportHeight="128">
|
||||
<group
|
||||
android:pivotX="64"
|
||||
android:pivotY="64"
|
||||
android:scaleX="0.88"
|
||||
android:scaleY="0.88">
|
||||
<path
|
||||
android:fillColor="#ffffff"
|
||||
android:pathData="M63.992,0.689C29.031,0.689 0.691,29.031 0.692,63.992c0,34.96 28.34,63.301 63.3,63.302 6.982,-0.014 13.881,-1.183 20.426,-3.43 4.317,-1.482 8.48,-3.433 12.411,-5.831 3.383,1.344 8.59,3.838 13.736,5.902 6.688,2.683 13.274,4.639 15.618,2.399 2.317,-2.212 0.703,-8.809 -1.647,-15.575 -2.046,-5.892 -4.649,-11.913 -5.701,-15.282 2.544,-4.415 4.535,-9.101 5.945,-13.954 1.648,-5.674 2.5,-11.574 2.512,-17.532C127.291,29.032 98.952,0.692 63.992,0.691ZM63.999,24.756l0.001,0c21.677,0 39.25,17.573 39.25,39.251 -0.001,21.677 -17.574,39.249 -39.251,39.249 -21.676,0 -39.249,-17.572 -39.25,-39.249 0,-21.678 17.573,-39.251 39.25,-39.251z"
|
||||
android:strokeWidth="4.78543139" />
|
||||
</group>
|
||||
</vector>
|
Loading…
Reference in New Issue
Block a user