mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 06:05:12 +00:00
Don't show the Encryption Info menu if we are not connected with the device
We don't know the actual encryption used unless we have a device link.
This commit is contained in:
@@ -242,7 +242,7 @@ public class DeviceFragment extends Fragment {
|
||||
}
|
||||
});
|
||||
|
||||
if (device.isPaired()) {
|
||||
if (device.isPaired() && device.isReachable()) {
|
||||
|
||||
menu.add(R.string.encryption_info_title).setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||
@Override
|
||||
@@ -266,6 +266,9 @@ public class DeviceFragment extends Fragment {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (device.isPaired()) {
|
||||
|
||||
menu.add(R.string.device_menu_unpair).setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user