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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user