forked from upstream-mirrors/quik
Update color for notification actions, for android wear
This commit is contained in:
@@ -116,7 +116,7 @@ class NotificationManagerImpl @Inject constructor(
|
||||
|
||||
val readIntent = Intent(context, MarkReadReceiver::class.java).putExtra("threadId", threadId)
|
||||
val readPI = PendingIntent.getBroadcast(context, threadId.toInt() + 30000, readIntent, PendingIntent.FLAG_UPDATE_CURRENT)
|
||||
val readAction = NotificationCompat.Action(R.drawable.ic_done_black_24dp, context.getString(R.string.notification_read), readPI)
|
||||
val readAction = NotificationCompat.Action(R.drawable.ic_check_white_24dp, context.getString(R.string.notification_read), readPI)
|
||||
|
||||
val notification = NotificationCompat.Builder(context, getChannelIdForNotification(threadId))
|
||||
.setColor(colors.themeForConversation(threadId).blockingFirst())
|
||||
@@ -191,7 +191,7 @@ class NotificationManagerImpl @Inject constructor(
|
||||
.build()
|
||||
|
||||
return NotificationCompat.Action.Builder(
|
||||
R.drawable.ic_reply_black_24dp,
|
||||
R.drawable.ic_reply_white_24dp,
|
||||
context.getString(R.string.notification_reply), replyPI)
|
||||
.addRemoteInput(remoteInput)
|
||||
.build()
|
||||
|
||||
+1
-1
@@ -22,6 +22,6 @@
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M9,16.17L4.83,12l-1.42,1.41L9,19 21,7l-1.41,-1.41z"/>
|
||||
</vector>
|
||||
@@ -1,27 +0,0 @@
|
||||
<!--
|
||||
~ Copyright (C) 2017 Moez Bhatti <moez.bhatti@gmail.com>
|
||||
~
|
||||
~ This file is part of QKSMS.
|
||||
~
|
||||
~ QKSMS is free software: you can redistribute it and/or modify
|
||||
~ it under the terms of the GNU General Public License as published by
|
||||
~ the Free Software Foundation, either version 3 of the License, or
|
||||
~ (at your option) any later version.
|
||||
~
|
||||
~ QKSMS is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
~ GNU General Public License for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU General Public License
|
||||
~ along with QKSMS. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M9,16.2L4.8,12l-1.4,1.4L9,19 21,7l-1.4,-1.4L9,16.2z"/>
|
||||
</vector>
|
||||
+1
-1
@@ -22,6 +22,6 @@
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:fillColor="#FFFFFFFF"
|
||||
android:pathData="M10,9V5l-7,7 7,7v-4.1c5,0 8.5,1.6 11,5.1 -1,-5 -4,-10 -11,-11z"/>
|
||||
</vector>
|
||||
@@ -40,6 +40,6 @@
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_marginRight="24dp"
|
||||
android:src="@drawable/ic_check_black_24dp" />
|
||||
android:src="@drawable/ic_check_white_24dp" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -231,7 +231,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:alpha="0.25"
|
||||
app:icon="@drawable/ic_reply_black_24dp"
|
||||
app:icon="@drawable/ic_reply_white_24dp"
|
||||
app:summary="@string/qksms_plus_respond_summary"
|
||||
app:title="@string/qksms_plus_respond_title" />
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:src="@drawable/ic_check_black_24dp"
|
||||
android:src="@drawable/ic_check_white_24dp"
|
||||
tools:tint="@color/textPrimaryDark" />
|
||||
|
||||
</FrameLayout>
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<item
|
||||
android:id="@+id/read"
|
||||
android:icon="@drawable/ic_check_black_24dp"
|
||||
android:icon="@drawable/ic_check_white_24dp"
|
||||
android:title="@string/qkreply_menu_read"
|
||||
app:showAsAction="ifRoom" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user