mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-29 05:07:40 +00:00
Remove redundant .create()
This commit is contained in:
parent
6f81c67632
commit
125dd14b18
@ -199,7 +199,7 @@ public class NotificationFilterActivity extends AppCompatActivity {
|
||||
compoundButton.isChecked()));
|
||||
|
||||
ad.cancel();
|
||||
myBuilder.create().show();
|
||||
myBuilder.show();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
@ -118,14 +118,12 @@ public class RunCommandActivity extends AppCompatActivity {
|
||||
|
||||
addCommandButton.setOnClickListener(v -> BackgroundService.RunWithPlugin(RunCommandActivity.this, deviceId, RunCommandPlugin.class, plugin -> {
|
||||
plugin.sendSetupPacket();
|
||||
AlertDialog dialog = new AlertDialog.Builder(RunCommandActivity.this)
|
||||
new AlertDialog.Builder(RunCommandActivity.this)
|
||||
.setTitle(R.string.add_command)
|
||||
.setMessage(R.string.add_command_description)
|
||||
.setPositiveButton(R.string.ok, null)
|
||||
.create();
|
||||
dialog.show();
|
||||
.show();
|
||||
}));
|
||||
|
||||
updateView();
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ public class DeviceFragment extends Fragment {
|
||||
builder.setMessage(context.getResources().getString(R.string.my_device_fingerprint) + "\n" + SslHelper.getCertificateHash(SslHelper.certificate) + "\n\n"
|
||||
+ context.getResources().getString(R.string.remote_device_fingerprint) + "\n" + SslHelper.getCertificateHash(device.certificate));
|
||||
}
|
||||
builder.create().show();
|
||||
builder.show();
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user