mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
tweak dialog, allow to copy to clipboard
This commit is contained in:
@@ -278,9 +278,11 @@ public class WebViewActivity extends PassphraseRequiredActionBarActivity
|
||||
new AlertDialog.Builder(this)
|
||||
.setTitle(R.string.open_url_confirmation)
|
||||
.setMessage(url)
|
||||
.setNegativeButton(R.string.cancel, null)
|
||||
.setPositiveButton(R.string.ok, (dialogInterface, i) -> {
|
||||
IntentUtils.showInBrowser(this, url);
|
||||
.setNeutralButton(R.string.cancel, null)
|
||||
.setPositiveButton(R.string.open, (d, w) -> IntentUtils.showInBrowser(this, url))
|
||||
.setNegativeButton(R.string.global_menu_edit_copy_desktop, (d, w) -> {
|
||||
Util.writeTextToClipboard(this, url);
|
||||
Toast.makeText(this, R.string.copied_to_clipboard, Toast.LENGTH_SHORT).show();
|
||||
})
|
||||
.show();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user