2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 18:07:55 +00:00
This commit is contained in:
Albert Vaca Cintora 2025-03-17 14:03:15 +01:00
parent b373c28cdd
commit 03ea5eae4c
No known key found for this signature in database

View File

@ -250,11 +250,17 @@ public class CustomDevicesActivity extends BaseActivity<ActivityCustomDevicesBin
showEmptyListMessageIfRequired(); showEmptyListMessageIfRequired();
} }
else { else {
Toast.makeText(addDeviceDialog.getContext(), R.string.device_host_duplicate, Toast.LENGTH_SHORT).show(); Context context = addDeviceDialog.getContext();
if (context != null) {
Toast.makeText(addDeviceDialog.getContext(), R.string.device_host_duplicate, Toast.LENGTH_SHORT).show();
}
} }
} }
else { else {
Toast.makeText(addDeviceDialog.getContext(), R.string.device_host_invalid, Toast.LENGTH_SHORT).show(); Context context = addDeviceDialog.getContext();
if (context != null) {
Toast.makeText(addDeviceDialog.getContext(), R.string.device_host_invalid, Toast.LENGTH_SHORT).show();
}
} }
} }
} }