mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 22:18:26 +00:00
refactor: move the set has seen to positive button handler
This commit is contained in:
parent
adeffbdc07
commit
b1535940f9
@ -975,6 +975,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
builder.setTitle("Search GIFs?")
|
||||
builder.setMessage("You will not have full metadata protection when sending GIFs.")
|
||||
builder.setPositiveButton("OK") { dialog: DialogInterface, which: Int ->
|
||||
TextSecurePreferences.setHasSeenGIFMetaDataWarning(this)
|
||||
AttachmentManager.selectGif(this, ConversationActivityV2.PICK_GIF)
|
||||
dialog.dismiss()
|
||||
}
|
||||
@ -982,7 +983,6 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
"Cancel"
|
||||
) { dialog: DialogInterface, which: Int -> dialog.dismiss() }
|
||||
builder.create().show()
|
||||
TextSecurePreferences.setHasSeenGIFMetaDataWarning(this)
|
||||
} else {
|
||||
AttachmentManager.selectGif(this, ConversationActivityV2.PICK_GIF)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user