mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-08 20:28:33 +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.setTitle("Search GIFs?")
|
||||||
builder.setMessage("You will not have full metadata protection when sending GIFs.")
|
builder.setMessage("You will not have full metadata protection when sending GIFs.")
|
||||||
builder.setPositiveButton("OK") { dialog: DialogInterface, which: Int ->
|
builder.setPositiveButton("OK") { dialog: DialogInterface, which: Int ->
|
||||||
|
TextSecurePreferences.setHasSeenGIFMetaDataWarning(this)
|
||||||
AttachmentManager.selectGif(this, ConversationActivityV2.PICK_GIF)
|
AttachmentManager.selectGif(this, ConversationActivityV2.PICK_GIF)
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
}
|
}
|
||||||
@ -982,7 +983,6 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
|||||||
"Cancel"
|
"Cancel"
|
||||||
) { dialog: DialogInterface, which: Int -> dialog.dismiss() }
|
) { dialog: DialogInterface, which: Int -> dialog.dismiss() }
|
||||||
builder.create().show()
|
builder.create().show()
|
||||||
TextSecurePreferences.setHasSeenGIFMetaDataWarning(this)
|
|
||||||
} else {
|
} else {
|
||||||
AttachmentManager.selectGif(this, ConversationActivityV2.PICK_GIF)
|
AttachmentManager.selectGif(this, ConversationActivityV2.PICK_GIF)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user