Chaged BrainKey modal in the Settings, it does not copu the BrainKey to the clipboard anymore, it just shows it so that the user writes it down.
This commit is contained in:
parent
5075c59b7b
commit
5470ca1523
2 changed files with 2 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
package cy.agorise.bitsybitshareswallet.fragments
|
||||
|
||||
import android.content.*
|
||||
import android.content.Context.CLIPBOARD_SERVICE
|
||||
import android.os.Bundle
|
||||
import android.os.Handler
|
||||
import android.os.IBinder
|
||||
|
@ -10,7 +9,6 @@ import android.util.Log
|
|||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import android.widget.Toast
|
||||
import androidx.fragment.app.Fragment
|
||||
import com.afollestad.materialdialogs.MaterialDialog
|
||||
import com.afollestad.materialdialogs.customview.customView
|
||||
|
@ -228,13 +226,7 @@ class SettingsFragment : Fragment(), ServiceConnection {
|
|||
message(text = brainKey.brainKey)
|
||||
customView(R.layout.dialog_copy_brainkey)
|
||||
cancelable(false)
|
||||
positiveButton(android.R.string.copy) {
|
||||
Toast.makeText(it.context, "Copied to clipboard", Toast.LENGTH_SHORT).show()
|
||||
val clipboard = it.context.getSystemService(CLIPBOARD_SERVICE) as ClipboardManager
|
||||
val clip = ClipData.newPlainText("label", brainKey.brainKey)
|
||||
clipboard.primaryClip = clip
|
||||
it.dismiss()
|
||||
}
|
||||
positiveButton(R.string.button__copied) { it.dismiss() }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,7 @@
|
|||
<string name="msg__brainkey_info">Write this down! Be sure you have 2 copies of this BrainKey in 2 secure locations
|
||||
in case of fire or loss. Security First! Anyone with access to your BrainKey can access the funds in your account!
|
||||
</string>
|
||||
<string name="button__copied">Copied</string>
|
||||
<string name="button__view_and_copy"><![CDATA[View & Copy]]></string>
|
||||
<string name="title__bugs_or_ideas">Bugs or Ideas?</string>
|
||||
<string name="msg__bugs_or_ideas">Telegram chat: http://t.me/Agorise\nEmail: Agorise@protonmail.ch\nOpen Source:
|
||||
|
|
Loading…
Reference in a new issue