forked from upstream-mirrors/quik
added select all actionbar item on main (inc archived) and compose activities. item becomes available when first item selected. menu item toggles select all/select none.
added indefinite timeout to archive snackbar on conversations activity when >= 10 conversations are archived at once. in case of accidental mass archive gives user more time to undo. added 'show status' menu item on compose activity that does the same as short touching on an item (exapnds it to show time, etc) but cn be applied to multiple selected items at once.
This commit is contained in:
@@ -73,6 +73,7 @@ import io.reactivex.Observable
|
|||||||
import io.reactivex.subjects.PublishSubject
|
import io.reactivex.subjects.PublishSubject
|
||||||
import io.reactivex.subjects.Subject
|
import io.reactivex.subjects.Subject
|
||||||
import kotlinx.android.synthetic.main.compose_activity.*
|
import kotlinx.android.synthetic.main.compose_activity.*
|
||||||
|
import kotlinx.android.synthetic.main.main_activity.toolbar
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.*
|
import java.util.*
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
@@ -256,6 +257,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
// Don't set the adapters unless needed
|
// Don't set the adapters unless needed
|
||||||
if (state.editingMode && chips.adapter == null) chips.adapter = chipsAdapter
|
if (state.editingMode && chips.adapter == null) chips.adapter = chipsAdapter
|
||||||
|
|
||||||
|
toolbar.menu.findItem(R.id.select_all)?.isVisible = !state.editingMode && (messageAdapter.itemCount > 1) && state.selectedMessages != 0
|
||||||
toolbar.menu.findItem(R.id.add)?.isVisible = state.editingMode
|
toolbar.menu.findItem(R.id.add)?.isVisible = state.editingMode
|
||||||
toolbar.menu.findItem(R.id.call)?.isVisible = !state.editingMode && state.selectedMessages == 0
|
toolbar.menu.findItem(R.id.call)?.isVisible = !state.editingMode && state.selectedMessages == 0
|
||||||
&& state.query.isEmpty()
|
&& state.query.isEmpty()
|
||||||
@@ -265,6 +267,7 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
toolbar.menu.findItem(R.id.details)?.isVisible = !state.editingMode && state.selectedMessages == 1
|
toolbar.menu.findItem(R.id.details)?.isVisible = !state.editingMode && state.selectedMessages == 1
|
||||||
toolbar.menu.findItem(R.id.delete)?.isVisible = !state.editingMode && state.selectedMessages > 0
|
toolbar.menu.findItem(R.id.delete)?.isVisible = !state.editingMode && state.selectedMessages > 0
|
||||||
toolbar.menu.findItem(R.id.forward)?.isVisible = !state.editingMode && state.selectedMessages == 1
|
toolbar.menu.findItem(R.id.forward)?.isVisible = !state.editingMode && state.selectedMessages == 1
|
||||||
|
toolbar.menu.findItem(R.id.show_status)?.isVisible = !state.editingMode && state.selectedMessages > 0
|
||||||
toolbar.menu.findItem(R.id.previous)?.isVisible = state.selectedMessages == 0 && state.query.isNotEmpty()
|
toolbar.menu.findItem(R.id.previous)?.isVisible = state.selectedMessages == 0 && state.query.isNotEmpty()
|
||||||
toolbar.menu.findItem(R.id.next)?.isVisible = state.selectedMessages == 0 && state.query.isNotEmpty()
|
toolbar.menu.findItem(R.id.next)?.isVisible = state.selectedMessages == 0 && state.query.isNotEmpty()
|
||||||
toolbar.menu.findItem(R.id.clear)?.isVisible = state.selectedMessages == 0 && state.query.isNotEmpty()
|
toolbar.menu.findItem(R.id.clear)?.isVisible = state.selectedMessages == 0 && state.query.isNotEmpty()
|
||||||
@@ -322,6 +325,14 @@ class ComposeActivity : QkThemedActivity(), ComposeView {
|
|||||||
|
|
||||||
override fun clearSelection() = messageAdapter.clearSelection()
|
override fun clearSelection() = messageAdapter.clearSelection()
|
||||||
|
|
||||||
|
override fun toggleSelectAll() {
|
||||||
|
messageAdapter.toggleSelectAll()
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun expandMessages(messageIds: List<Long>, expand: Boolean) {
|
||||||
|
messageAdapter.expandMessages(messageIds, expand)
|
||||||
|
}
|
||||||
|
|
||||||
override fun showDetails(details: String) {
|
override fun showDetails(details: String) {
|
||||||
AlertDialog.Builder(this)
|
AlertDialog.Builder(this)
|
||||||
.setTitle(R.string.compose_details_title)
|
.setTitle(R.string.compose_details_title)
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ interface ComposeView : QkView<ComposeState> {
|
|||||||
val confirmDeleteIntent: Observable<List<Long>>
|
val confirmDeleteIntent: Observable<List<Long>>
|
||||||
|
|
||||||
fun clearSelection()
|
fun clearSelection()
|
||||||
|
fun toggleSelectAll()
|
||||||
|
fun expandMessages(messageIds: List<Long>, expand: Boolean)
|
||||||
fun showDetails(details: String)
|
fun showDetails(details: String)
|
||||||
fun requestDefaultSms()
|
fun requestDefaultSms()
|
||||||
fun requestStoragePermission()
|
fun requestStoragePermission()
|
||||||
|
|||||||
@@ -310,6 +310,12 @@ class ComposeViewModel @Inject constructor(
|
|||||||
.autoDisposable(view.scope())
|
.autoDisposable(view.scope())
|
||||||
.subscribe { newState { copy() } }
|
.subscribe { newState { copy() } }
|
||||||
|
|
||||||
|
// toggle select all / select none
|
||||||
|
view.optionsItemIntent
|
||||||
|
.filter { it == R.id.select_all }
|
||||||
|
.autoDisposable(view.scope())
|
||||||
|
.subscribe { view.toggleSelectAll() }
|
||||||
|
|
||||||
// Open the phone dialer if the call button is clicked
|
// Open the phone dialer if the call button is clicked
|
||||||
view.optionsItemIntent
|
view.optionsItemIntent
|
||||||
.filter { it == R.id.call }
|
.filter { it == R.id.call }
|
||||||
@@ -369,15 +375,25 @@ class ComposeViewModel @Inject constructor(
|
|||||||
|
|
||||||
// Forward the message
|
// Forward the message
|
||||||
view.optionsItemIntent
|
view.optionsItemIntent
|
||||||
.filter { it == R.id.forward }
|
.filter { it == R.id.forward }
|
||||||
.withLatestFrom(view.messagesSelectedIntent) { _, messages ->
|
.withLatestFrom(view.messagesSelectedIntent) { _, messages ->
|
||||||
messages?.firstOrNull()?.let { messageRepo.getMessage(it) }?.let { message ->
|
messages?.firstOrNull()?.let { messageRepo.getMessage(it) }?.let { message ->
|
||||||
val images = message.parts.filter { it.isImage() }.mapNotNull { it.getUri() }
|
val images = message.parts.filter { it.isImage() }.mapNotNull { it.getUri() }
|
||||||
navigator.showCompose(message.getText(), images)
|
navigator.showCompose(message.getText(), images)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.autoDisposable(view.scope())
|
}
|
||||||
.subscribe { view.clearSelection() }
|
.autoDisposable(view.scope())
|
||||||
|
.subscribe { view.clearSelection() }
|
||||||
|
|
||||||
|
// expand message to show additional info
|
||||||
|
view.optionsItemIntent
|
||||||
|
.filter { it == R.id.show_status }
|
||||||
|
.withLatestFrom(view.messagesSelectedIntent) { _, messages -> messages }
|
||||||
|
.autoDisposable(view.scope())
|
||||||
|
.subscribe { messageIds ->
|
||||||
|
view.expandMessages(messageIds, true)
|
||||||
|
view.clearSelection()
|
||||||
|
}
|
||||||
|
|
||||||
// Show the previous search result
|
// Show the previous search result
|
||||||
view.optionsItemIntent
|
view.optionsItemIntent
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ package dev.octoshrimpy.quik.feature.compose
|
|||||||
import android.animation.ObjectAnimator
|
import android.animation.ObjectAnimator
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.graphics.Typeface
|
import android.graphics.Typeface
|
||||||
import android.os.Build
|
|
||||||
import android.text.Layout
|
import android.text.Layout
|
||||||
import android.text.Spannable
|
import android.text.Spannable
|
||||||
import android.text.SpannableString
|
import android.text.SpannableString
|
||||||
@@ -315,6 +314,10 @@ class MessagesAdapter @Inject constructor(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun getItemId(position: Int): Long {
|
||||||
|
return getItem(position)?.id ?: -1
|
||||||
|
}
|
||||||
|
|
||||||
override fun getItemViewType(position: Int): Int {
|
override fun getItemViewType(position: Int): Int {
|
||||||
val message = getItem(position) ?: return -1
|
val message = getItem(position) ?: return -1
|
||||||
return when (message.isMe()) {
|
return when (message.isMe()) {
|
||||||
@@ -323,6 +326,35 @@ class MessagesAdapter @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun toggleSelectAll() {
|
||||||
|
var needToSelectAll = false
|
||||||
|
|
||||||
|
// if a non-selected item is found, then we need to select all, otherwise deselect all
|
||||||
|
for (position in 0 until itemCount)
|
||||||
|
if (!isSelected(getItemId(position))) {
|
||||||
|
needToSelectAll = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
// select or deselect item based on if toggling all selected of deselected
|
||||||
|
for (position in 0 until itemCount) {
|
||||||
|
val messageId = getItemId(position)
|
||||||
|
// if deselecting all then toggle selection (we know all items are selected)
|
||||||
|
if (!needToSelectAll)
|
||||||
|
toggleSelection(messageId)
|
||||||
|
// else, selecting all, toggle if not already selected
|
||||||
|
else if (!isSelected(messageId))
|
||||||
|
toggleSelection(messageId)
|
||||||
|
}
|
||||||
|
|
||||||
|
notifyDataSetChanged()
|
||||||
|
}
|
||||||
|
|
||||||
|
fun expandMessages(messageIds: List<Long>, expand: Boolean) {
|
||||||
|
messageIds.forEach { messageId -> expanded[messageId] = expand }
|
||||||
|
notifyDataSetChanged()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cache the contacts in a map by the address, because the messages we're binding don't have
|
* Cache the contacts in a map by the address, because the messages we're binding don't have
|
||||||
* a reference to the contact.
|
* a reference to the contact.
|
||||||
|
|||||||
+24
@@ -130,4 +130,28 @@ class ConversationsAdapter @Inject constructor(
|
|||||||
override fun getItemViewType(position: Int): Int {
|
override fun getItemViewType(position: Int): Int {
|
||||||
return if (getItem(position)?.unread == false) 0 else 1
|
return if (getItem(position)?.unread == false) 0 else 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun toggleSelectAll() {
|
||||||
|
var needToSelectAll = false
|
||||||
|
|
||||||
|
// if a non-selected item is found, then we need to select all, otherwise deselect all
|
||||||
|
for (position in 0 until itemCount)
|
||||||
|
if (!isSelected(getItemId(position))) {
|
||||||
|
needToSelectAll = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
// select or deselect item based on if toggling all selected of deselected
|
||||||
|
for (position in 0 until itemCount) {
|
||||||
|
val threadId = getItemId(position)
|
||||||
|
// if deselecting all then toggle selection (we know all items are selected)
|
||||||
|
if (!needToSelectAll)
|
||||||
|
toggleSelection(threadId)
|
||||||
|
// else, selecting all, toggle if not already selected
|
||||||
|
else if (!isSelected(threadId))
|
||||||
|
toggleSelection(threadId)
|
||||||
|
}
|
||||||
|
|
||||||
|
notifyDataSetChanged()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ class MainActivity : QkThemedActivity(), MainView {
|
|||||||
toolbarSearch.setVisible(state.page is Inbox && state.page.selected == 0 || state.page is Searching)
|
toolbarSearch.setVisible(state.page is Inbox && state.page.selected == 0 || state.page is Searching)
|
||||||
toolbarTitle.setVisible(toolbarSearch.visibility != View.VISIBLE)
|
toolbarTitle.setVisible(toolbarSearch.visibility != View.VISIBLE)
|
||||||
|
|
||||||
|
toolbar.menu.findItem(R.id.select_all)?.isVisible = (conversationsAdapter.itemCount > 1) && selectedConversations != 0
|
||||||
toolbar.menu.findItem(R.id.archive)?.isVisible = state.page is Inbox && selectedConversations != 0
|
toolbar.menu.findItem(R.id.archive)?.isVisible = state.page is Inbox && selectedConversations != 0
|
||||||
toolbar.menu.findItem(R.id.unarchive)?.isVisible = state.page is Archived && selectedConversations != 0
|
toolbar.menu.findItem(R.id.unarchive)?.isVisible = state.page is Archived && selectedConversations != 0
|
||||||
toolbar.menu.findItem(R.id.delete)?.isVisible = selectedConversations != 0
|
toolbar.menu.findItem(R.id.delete)?.isVisible = selectedConversations != 0
|
||||||
@@ -380,6 +381,10 @@ class MainActivity : QkThemedActivity(), MainView {
|
|||||||
conversationsAdapter.clearSelection()
|
conversationsAdapter.clearSelection()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun toggleSelectAll() {
|
||||||
|
conversationsAdapter.toggleSelectAll()
|
||||||
|
}
|
||||||
|
|
||||||
override fun themeChanged() {
|
override fun themeChanged() {
|
||||||
recyclerView.scrapViews()
|
recyclerView.scrapViews()
|
||||||
}
|
}
|
||||||
@@ -402,8 +407,12 @@ class MainActivity : QkThemedActivity(), MainView {
|
|||||||
changelogDialog.show(changelog)
|
changelogDialog.show(changelog)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun showArchivedSnackbar() {
|
override fun showArchivedSnackbar(countConversationsArchived: Int) {
|
||||||
Snackbar.make(drawerLayout, R.string.toast_archived, Snackbar.LENGTH_LONG).apply {
|
Snackbar.make(
|
||||||
|
drawerLayout,
|
||||||
|
resources.getQuantityString(R.plurals.toast_archived, countConversationsArchived, countConversationsArchived),
|
||||||
|
if (countConversationsArchived < 10) Snackbar.LENGTH_LONG else Snackbar.LENGTH_INDEFINITE
|
||||||
|
).apply {
|
||||||
setAction(R.string.button_undo) { undoArchiveIntent.onNext(Unit) }
|
setAction(R.string.button_undo) { undoArchiveIntent.onNext(Unit) }
|
||||||
setActionTextColor(colors.theme().theme)
|
setActionTextColor(colors.theme().theme)
|
||||||
show()
|
show()
|
||||||
|
|||||||
@@ -47,11 +47,12 @@ interface MainView : QkView<MainState> {
|
|||||||
fun requestPermissions()
|
fun requestPermissions()
|
||||||
fun clearSearch()
|
fun clearSearch()
|
||||||
fun clearSelection()
|
fun clearSelection()
|
||||||
|
fun toggleSelectAll()
|
||||||
fun themeChanged()
|
fun themeChanged()
|
||||||
fun showBlockingDialog(conversations: List<Long>, block: Boolean)
|
fun showBlockingDialog(conversations: List<Long>, block: Boolean)
|
||||||
fun showDeleteDialog(conversations: List<Long>)
|
fun showDeleteDialog(conversations: List<Long>)
|
||||||
fun showChangelog(changelog: ChangelogManager.CumulativeChangelog)
|
fun showChangelog(changelog: ChangelogManager.CumulativeChangelog)
|
||||||
fun showArchivedSnackbar()
|
fun showArchivedSnackbar(countConversationsArchived: Int)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,9 +18,6 @@
|
|||||||
*/
|
*/
|
||||||
package dev.octoshrimpy.quik.feature.main
|
package dev.octoshrimpy.quik.feature.main
|
||||||
|
|
||||||
import android.content.Intent
|
|
||||||
import android.net.Uri
|
|
||||||
import android.provider.Settings
|
|
||||||
import androidx.recyclerview.widget.ItemTouchHelper
|
import androidx.recyclerview.widget.ItemTouchHelper
|
||||||
import dev.octoshrimpy.quik.R
|
import dev.octoshrimpy.quik.R
|
||||||
import dev.octoshrimpy.quik.common.Navigator
|
import dev.octoshrimpy.quik.common.Navigator
|
||||||
@@ -84,6 +81,7 @@ class MainViewModel @Inject constructor(
|
|||||||
private val syncContacts: SyncContacts,
|
private val syncContacts: SyncContacts,
|
||||||
private val syncMessages: SyncMessages
|
private val syncMessages: SyncMessages
|
||||||
) : QkViewModel<MainView, MainState>(MainState(page = Inbox(data = conversationRepo.getConversations(prefs.unreadAtTop.get())))) {
|
) : QkViewModel<MainView, MainState>(MainState(page = Inbox(data = conversationRepo.getConversations(prefs.unreadAtTop.get())))) {
|
||||||
|
private val lastArchivedThreadIds = ArrayList<Long>()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
disposables += deleteConversations
|
disposables += deleteConversations
|
||||||
@@ -333,10 +331,18 @@ class MainViewModel @Inject constructor(
|
|||||||
.autoDisposable(view.scope())
|
.autoDisposable(view.scope())
|
||||||
.subscribe()
|
.subscribe()
|
||||||
|
|
||||||
|
view.optionsItemIntent
|
||||||
|
.filter { itemId -> itemId == R.id.select_all }
|
||||||
|
.autoDisposable(view.scope())
|
||||||
|
.subscribe { view.toggleSelectAll() }
|
||||||
|
|
||||||
view.optionsItemIntent
|
view.optionsItemIntent
|
||||||
.filter { itemId -> itemId == R.id.archive }
|
.filter { itemId -> itemId == R.id.archive }
|
||||||
.withLatestFrom(view.conversationsSelectedIntent) { _, conversations ->
|
.withLatestFrom(view.conversationsSelectedIntent) { _, conversations ->
|
||||||
markArchived.execute(conversations)
|
markArchived.execute(conversations)
|
||||||
|
lastArchivedThreadIds.clear()
|
||||||
|
conversations.forEach { conversation -> lastArchivedThreadIds.add(conversation) }
|
||||||
|
view.showArchivedSnackbar(conversations.count())
|
||||||
view.clearSelection()
|
view.clearSelection()
|
||||||
}
|
}
|
||||||
.autoDisposable(view.scope())
|
.autoDisposable(view.scope())
|
||||||
@@ -346,6 +352,7 @@ class MainViewModel @Inject constructor(
|
|||||||
.filter { itemId -> itemId == R.id.unarchive }
|
.filter { itemId -> itemId == R.id.unarchive }
|
||||||
.withLatestFrom(view.conversationsSelectedIntent) { _, conversations ->
|
.withLatestFrom(view.conversationsSelectedIntent) { _, conversations ->
|
||||||
markUnarchived.execute(conversations)
|
markUnarchived.execute(conversations)
|
||||||
|
view.showArchivedSnackbar(conversations.count())
|
||||||
view.clearSelection()
|
view.clearSelection()
|
||||||
}
|
}
|
||||||
.autoDisposable(view.scope())
|
.autoDisposable(view.scope())
|
||||||
@@ -481,7 +488,12 @@ class MainViewModel @Inject constructor(
|
|||||||
.subscribe { (threadId, direction) ->
|
.subscribe { (threadId, direction) ->
|
||||||
val action = if (direction == ItemTouchHelper.RIGHT) prefs.swipeRight.get() else prefs.swipeLeft.get()
|
val action = if (direction == ItemTouchHelper.RIGHT) prefs.swipeRight.get() else prefs.swipeLeft.get()
|
||||||
when (action) {
|
when (action) {
|
||||||
Preferences.SWIPE_ACTION_ARCHIVE -> markArchived.execute(listOf(threadId)) { view.showArchivedSnackbar() }
|
Preferences.SWIPE_ACTION_ARCHIVE -> markArchived.execute(listOf(threadId))
|
||||||
|
{
|
||||||
|
lastArchivedThreadIds.clear()
|
||||||
|
lastArchivedThreadIds.add(threadId)
|
||||||
|
view.showArchivedSnackbar(1)
|
||||||
|
}
|
||||||
Preferences.SWIPE_ACTION_DELETE -> view.showDeleteDialog(listOf(threadId))
|
Preferences.SWIPE_ACTION_DELETE -> view.showDeleteDialog(listOf(threadId))
|
||||||
Preferences.SWIPE_ACTION_BLOCK -> view.showBlockingDialog(listOf(threadId), true)
|
Preferences.SWIPE_ACTION_BLOCK -> view.showBlockingDialog(listOf(threadId), true)
|
||||||
Preferences.SWIPE_ACTION_CALL -> conversationRepo.getConversation(threadId)?.recipients?.firstOrNull()?.address?.let(navigator::makePhoneCall)
|
Preferences.SWIPE_ACTION_CALL -> conversationRepo.getConversation(threadId)?.recipients?.firstOrNull()?.address?.let(navigator::makePhoneCall)
|
||||||
@@ -492,9 +504,11 @@ class MainViewModel @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
view.undoArchiveIntent
|
view.undoArchiveIntent
|
||||||
.withLatestFrom(view.swipeConversationIntent) { _, pair -> pair.first }
|
|
||||||
.autoDisposable(view.scope())
|
.autoDisposable(view.scope())
|
||||||
.subscribe { threadId -> markUnarchived.execute(listOf(threadId)) }
|
.subscribe {
|
||||||
|
markUnarchived.execute(lastArchivedThreadIds)
|
||||||
|
lastArchivedThreadIds.clear()
|
||||||
|
}
|
||||||
|
|
||||||
view.snackbarButtonIntent
|
view.snackbarButtonIntent
|
||||||
.withLatestFrom(state) { _, state ->
|
.withLatestFrom(state) { _, state ->
|
||||||
|
|||||||
@@ -34,6 +34,13 @@
|
|||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="always" />
|
app:showAsAction="always" />
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:id="@+id/select_all"
|
||||||
|
android:icon="?attr/actionModeSelectAllDrawable"
|
||||||
|
android:title="@string/main_menu_select_all"
|
||||||
|
android:visible="false"
|
||||||
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/info"
|
android:id="@+id/info"
|
||||||
android:icon="@drawable/ic_more_vert_black_24dp"
|
android:icon="@drawable/ic_more_vert_black_24dp"
|
||||||
@@ -46,14 +53,14 @@
|
|||||||
android:icon="@drawable/ic_info_black_24dp"
|
android:icon="@drawable/ic_info_black_24dp"
|
||||||
android:title="@string/compose_menu_copy"
|
android:title="@string/compose_menu_copy"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/delete"
|
android:id="@+id/delete"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_white_24dp"
|
||||||
android:title="@string/compose_menu_delete"
|
android:title="@string/compose_menu_delete"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/copy"
|
android:id="@+id/copy"
|
||||||
@@ -69,6 +76,13 @@
|
|||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:id="@+id/show_status"
|
||||||
|
android:icon="@android:drawable/ic_menu_more"
|
||||||
|
android:title="@string/compose_menu_show_status"
|
||||||
|
android:visible="false"
|
||||||
|
app:showAsAction="ifRoom" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/previous"
|
android:id="@+id/previous"
|
||||||
android:icon="@drawable/ic_keyboard_arrow_up_black_24dp"
|
android:icon="@drawable/ic_keyboard_arrow_up_black_24dp"
|
||||||
|
|||||||
@@ -20,26 +20,33 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
|
|
||||||
|
<item
|
||||||
|
android:id="@+id/select_all"
|
||||||
|
android:icon="?attr/actionModeSelectAllDrawable"
|
||||||
|
android:title="@string/main_menu_select_all"
|
||||||
|
android:visible="false"
|
||||||
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/archive"
|
android:id="@+id/archive"
|
||||||
android:icon="@drawable/ic_archive_white_24dp"
|
android:icon="@drawable/ic_archive_white_24dp"
|
||||||
android:title="@string/main_menu_archive"
|
android:title="@string/main_menu_archive"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/unarchive"
|
android:id="@+id/unarchive"
|
||||||
android:icon="@drawable/ic_inbox_black_24dp"
|
android:icon="@drawable/ic_inbox_black_24dp"
|
||||||
android:title="@string/main_menu_unarchive"
|
android:title="@string/main_menu_unarchive"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/delete"
|
android:id="@+id/delete"
|
||||||
android:icon="@drawable/ic_delete_white_24dp"
|
android:icon="@drawable/ic_delete_white_24dp"
|
||||||
android:title="@string/main_menu_delete"
|
android:title="@string/main_menu_delete"
|
||||||
android:visible="false"
|
android:visible="false"
|
||||||
app:showAsAction="ifRoom" />
|
app:showAsAction="always" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/add"
|
android:id="@+id/add"
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
<string name="main_drawer_open_cd">Open navigation drawer</string>
|
<string name="main_drawer_open_cd">Open navigation drawer</string>
|
||||||
<string name="main_title_selected">%d selected</string>
|
<string name="main_title_selected">%d selected</string>
|
||||||
<string name="main_menu_clear">Clear</string>
|
<string name="main_menu_clear">Clear</string>
|
||||||
|
<string name="main_menu_select_all">Select all</string>
|
||||||
<string name="main_menu_archive">Archive</string>
|
<string name="main_menu_archive">Archive</string>
|
||||||
<string name="main_menu_unarchive">Unarchive</string>
|
<string name="main_menu_unarchive">Unarchive</string>
|
||||||
<string name="main_menu_delete">Delete</string>
|
<string name="main_menu_delete">Delete</string>
|
||||||
@@ -122,6 +123,7 @@
|
|||||||
<string name="compose_no_valid_recipients">Can\'t send to other participants</string>
|
<string name="compose_no_valid_recipients">Can\'t send to other participants</string>
|
||||||
<string name="compose_menu_copy">Copy text</string>
|
<string name="compose_menu_copy">Copy text</string>
|
||||||
<string name="compose_menu_forward">Forward</string>
|
<string name="compose_menu_forward">Forward</string>
|
||||||
|
<string name="compose_menu_show_status">Show status</string>
|
||||||
<string name="compose_menu_delete">Delete</string>
|
<string name="compose_menu_delete">Delete</string>
|
||||||
<string name="compose_menu_previous">Previous</string>
|
<string name="compose_menu_previous">Previous</string>
|
||||||
<string name="compose_menu_next">Next</string>
|
<string name="compose_menu_next">Next</string>
|
||||||
@@ -427,7 +429,11 @@
|
|||||||
<string name="button_undo">Undo</string>
|
<string name="button_undo">Undo</string>
|
||||||
|
|
||||||
<string name="toast_copied">Copied</string>
|
<string name="toast_copied">Copied</string>
|
||||||
<string name="toast_archived">Archived conversation</string>
|
<plurals name="toast_archived">
|
||||||
|
<item quantity="one">Archived conversation</item>
|
||||||
|
<item quantity="other">Archived %d conversations</item>
|
||||||
|
</plurals>
|
||||||
|
|
||||||
<string name="toast_qksms_plus">You must unlock QUIK+ to use this</string>
|
<string name="toast_qksms_plus">You must unlock QUIK+ to use this</string>
|
||||||
|
|
||||||
<plurals name="notification_new_messages">
|
<plurals name="notification_new_messages">
|
||||||
|
|||||||
Reference in New Issue
Block a user