Add ability to archive/unarchive from compose activity

This commit is contained in:
Moez Bhatti
2017-12-04 11:19:13 -05:00
parent eafcdd15b8
commit e561dff574
8 changed files with 79 additions and 8 deletions
+8
View File
@@ -1,10 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/call"
android:icon="@drawable/ic_call_black_24dp"
android:title="@string/menu_call"
android:visible="false"
app:showAsAction="always" />
<item
android:id="@+id/archive"
android:title="@string/menu_archive"
android:visible="false"
app:showAsAction="never" />
</menu>
+4
View File
@@ -6,6 +6,8 @@
<string name="title_compose">Type a name or number</string>
<string name="menu_call">Call</string>
<string name="menu_archive">Archive</string>
<string name="menu_unarchive">Unarchive</string>
<string name="compose_hint">Write a message</string>
@@ -42,6 +44,8 @@
<string name="notification_read">Mark read</string>
<string name="toast_copied">Copied</string>
<string name="toast_archived">Archived</string>
<string name="toast_unarchived">Moved to inbox</string>
<string-array name="message_options">
<item>Copy text</item>