@ -1439,16 +1439,16 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
val hasSeenGIFMetaDataWarning : Boolean = textSecurePreferences . hasSeenGIFMetaDataWarning ( )
val hasSeenGIFMetaDataWarning : Boolean = textSecurePreferences . hasSeenGIFMetaDataWarning ( )
if ( ! hasSeenGIFMetaDataWarning ) {
if ( ! hasSeenGIFMetaDataWarning ) {
val builder = AlertDialog . Builder ( this )
val builder = AlertDialog . Builder ( this )
builder . setTitle ( " Search GIFs? " )
builder . setTitle ( R . string . giphy _permission _title )
builder . setMessage ( " You will not have full metadata protection when sending GIFs. " )
builder . setMessage ( R . string . giphy _permission _message )
builder . setPositiveButton ( " OK " ) { dialog : DialogInterface , _ : Int ->
builder . setPositiveButton ( R . string . continue _2 ) { dialog : DialogInterface , _ : Int ->
textSecurePreferences . setHasSeenGIFMetaDataWarning ( )
textSecurePreferences . setHasSeenGIFMetaDataWarning ( )
AttachmentManager . selectGif ( this , PICK _GIF )
AttachmentManager . selectGif ( this , PICK _GIF )
dialog . dismiss ( )
dialog . dismiss ( )
}
}
builder . setNegativeButton (
builder . setNegativeButton ( R . string . cancel ) { dialog : DialogInterface , _ : Int ->
" Cancel "
dialog . dismiss ( )
) { dialog : DialogInterface , _ : Int -> dialog . dismiss ( ) }
}
builder . create ( ) . show ( )
builder . create ( ) . show ( )
} else {
} else {
AttachmentManager . selectGif ( this , PICK _GIF )
AttachmentManager . selectGif ( this , PICK _GIF )