|
|
|
@ -7,6 +7,7 @@ import android.content.Context
|
|
|
|
|
import android.content.Intent
|
|
|
|
|
import android.content.IntentFilter
|
|
|
|
|
import android.net.Uri
|
|
|
|
|
import android.os.Build
|
|
|
|
|
import android.os.Bundle
|
|
|
|
|
import android.os.Parcelable
|
|
|
|
|
import android.util.SparseArray
|
|
|
|
@ -17,6 +18,7 @@ import android.view.View
|
|
|
|
|
import android.view.inputmethod.EditorInfo
|
|
|
|
|
import android.view.inputmethod.InputMethodManager
|
|
|
|
|
import android.widget.Toast
|
|
|
|
|
import androidx.annotation.RequiresApi
|
|
|
|
|
import androidx.compose.foundation.layout.Arrangement
|
|
|
|
|
import androidx.compose.foundation.layout.Column
|
|
|
|
|
import androidx.compose.foundation.layout.Row
|
|
|
|
@ -74,14 +76,10 @@ import org.thoughtcrime.securesms.recoverypassword.RecoveryPasswordActivity
|
|
|
|
|
import org.thoughtcrime.securesms.showSessionDialog
|
|
|
|
|
import org.thoughtcrime.securesms.ui.Cell
|
|
|
|
|
import org.thoughtcrime.securesms.ui.Divider
|
|
|
|
|
import org.thoughtcrime.securesms.ui.ItemButton
|
|
|
|
|
import org.thoughtcrime.securesms.ui.ItemButtonWithDrawable
|
|
|
|
|
import org.thoughtcrime.securesms.ui.LargeItemButton
|
|
|
|
|
import org.thoughtcrime.securesms.ui.LargeItemButtonWithDrawable
|
|
|
|
|
import org.thoughtcrime.securesms.ui.LocalDimensions
|
|
|
|
|
import org.thoughtcrime.securesms.ui.color.destructiveButtonColors
|
|
|
|
|
import org.thoughtcrime.securesms.ui.components.OutlineButton
|
|
|
|
|
import org.thoughtcrime.securesms.ui.components.OutlineCopyButton
|
|
|
|
|
import org.thoughtcrime.securesms.ui.components.PrimaryOutlineButton
|
|
|
|
|
import org.thoughtcrime.securesms.ui.components.PrimaryOutlineCopyButton
|
|
|
|
|
import org.thoughtcrime.securesms.ui.contentDescription
|
|
|
|
@ -169,6 +167,9 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
|
|
|
|
|
|
|
|
|
|
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
|
|
|
|
menuInflater.inflate(R.menu.settings_general, menu)
|
|
|
|
|
if (BuildConfig.DEBUG && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
|
|
|
menu.findItem(R.id.action_qr_code)?.contentDescription = resources.getString(R.string.AccessibilityId_view_qr_code)
|
|
|
|
|
}
|
|
|
|
|
return true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|