2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-31 14:15:14 +00:00

Don't show buttons that can't be clicked

This commit is contained in:
Albert Vaca
2015-09-07 16:00:13 -07:00
parent da0d5af9d1
commit 0b50bd8747

View File

@@ -28,7 +28,8 @@ public class PluginPreference extends CheckBoxPreference {
setSummary(info.getDescription());
setChecked(device.isPluginEnabled(pluginKey));
if (info.hasSettings()) {
Plugin plugin = device.getPlugin(pluginKey, true);
if (info.hasSettings() && plugin != null) {
this.listener = new View.OnClickListener() {
@Override
public void onClick(View v) {