Raise targetSdk to 29 (#682)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
4f20c49abb
commit
11c7e36986
5 changed files with 10 additions and 9 deletions
|
@ -23,6 +23,7 @@
|
|||
android:label="@string/app_name"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
android:requestLegacyExternalStorage="true"
|
||||
tools:ignore="GoogleAppIndexingWarning">
|
||||
|
||||
<activity
|
||||
|
|
|
@ -139,7 +139,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
|||
crypto_password_file.text = name
|
||||
crypto_password_file.setOnLongClickListener {
|
||||
val clip = ClipData.newPlainText("pgp_handler_result_pm", name)
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
showSnackbar(this.resources.getString(R.string.clipboard_username_toast_text))
|
||||
true
|
||||
}
|
||||
|
@ -813,7 +813,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
|||
}
|
||||
|
||||
val clip = ClipData.newPlainText("pgp_handler_result_pm", pass)
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
|
||||
var clearAfter = 45
|
||||
try {
|
||||
|
@ -832,13 +832,13 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound {
|
|||
|
||||
private fun copyUsernameToClipBoard(username: String) {
|
||||
val clip = ClipData.newPlainText("pgp_handler_result_pm", username)
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
showSnackbar(resources.getString(R.string.clipboard_username_toast_text))
|
||||
}
|
||||
|
||||
private fun copyOtpToClipBoard(code: String) {
|
||||
val clip = ClipData.newPlainText("pgp_handler_result_pm", code)
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
showSnackbar(resources.getString(R.string.clipboard_otp_toast_text))
|
||||
}
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ class ShowSshKeyFragment : DialogFragment() {
|
|||
b.setOnClickListener {
|
||||
val clipboard = activity.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
|
||||
val clip = ClipData.newPlainText("public key", publicKey.text.toString())
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
}
|
||||
}
|
||||
return ad
|
||||
|
|
|
@ -15,12 +15,12 @@ object ClipboardUtils {
|
|||
suspend fun clearClipboard(clipboard: ClipboardManager, deepClear: Boolean = false) {
|
||||
Timber.d("Clearing the clipboard")
|
||||
val clip = ClipData.newPlainText("pgp_handler_result_pm", "")
|
||||
clipboard.primaryClip = clip
|
||||
clipboard.setPrimaryClip(clip)
|
||||
if (deepClear) {
|
||||
withContext(Dispatchers.IO) {
|
||||
repeat(20) {
|
||||
val count = (it * 500).toString()
|
||||
clipboard.primaryClip = ClipData.newPlainText(count, count)
|
||||
clipboard.setPrimaryClip(ClipData.newPlainText(count, count))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*/
|
||||
ext.versions = [
|
||||
minSdk: 23,
|
||||
targetSdk: 28,
|
||||
compileSdk: 28,
|
||||
targetSdk: 29,
|
||||
compileSdk: 29,
|
||||
versionCode: 10601,
|
||||
versionName: '1.7.0-SNAPSHOT',
|
||||
buildTools: '29.0.3',
|
||||
|
|
Loading…
Reference in a new issue