mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
if known, show ssid in the AlertDialog directly after scanning (#2528)
This commit is contained in:
@@ -213,7 +213,7 @@ public class BackupTransferActivity extends BaseActionBarActivity {
|
||||
}
|
||||
|
||||
public static void appendSSID(Activity activity, final TextView textView) {
|
||||
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
|
||||
if (textView != null && android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {
|
||||
new Thread(() -> {
|
||||
try {
|
||||
// depending on the android version, getting the SSID requires none, all or one of
|
||||
|
||||
@@ -84,7 +84,11 @@ public class QrCodeHandler {
|
||||
});
|
||||
builder.setNegativeButton(R.string.cancel, null);
|
||||
builder.setCancelable(false);
|
||||
break;
|
||||
|
||||
AlertDialog alertDialog = builder.create();
|
||||
alertDialog.show();
|
||||
BackupTransferActivity.appendSSID(activity, alertDialog.findViewById(android.R.id.message));
|
||||
return;
|
||||
|
||||
case DcContext.DC_QR_LOGIN:
|
||||
String email = qrParsed.getText1();
|
||||
|
||||
Reference in New Issue
Block a user