mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #4264 from deltachat/adb/make-encr-info-selectable
make it possible to select/copy the fingerprints in encryption info dialog
This commit is contained in:
@@ -12,6 +12,7 @@ import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.widget.EditText;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
@@ -409,10 +410,14 @@ public class ProfileActivity extends PassphraseRequiredActionBarActivity
|
||||
private void onEncrInfo() {
|
||||
String infoStr = isContactProfile() ?
|
||||
dcContext.getContactEncrInfo(contactId) : dcContext.getChatEncrInfo(chatId);
|
||||
new AlertDialog.Builder(this)
|
||||
AlertDialog dialog = new AlertDialog.Builder(this)
|
||||
.setMessage(infoStr)
|
||||
.setPositiveButton(android.R.string.ok, null)
|
||||
.show();
|
||||
TextView messageView = dialog.findViewById(android.R.id.message);
|
||||
if (messageView != null) {
|
||||
messageView.setTextIsSelectable(true);
|
||||
}
|
||||
}
|
||||
|
||||
private void onBlockContact() {
|
||||
|
||||
Reference in New Issue
Block a user