2
0
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:
Albert Vaca
2016-09-06 00:47:27 +02:00
parent 23f7eb90ba
commit e9a64dc99a

View File

@@ -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