diff --git a/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java b/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java index b2908459..5f62e488 100644 --- a/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java +++ b/src/org/kde/kdeconnect/Plugins/RunCommandPlugin/RunCommandActivity.java @@ -111,7 +111,11 @@ public class RunCommandActivity extends AppCompatActivity { boolean canAddCommands = BackgroundService.getInstance().getDevice(deviceId).getPlugin(RunCommandPlugin.class).canAddCommand(); FloatingActionButton addCommandButton = findViewById(R.id.add_command_button); - addCommandButton.setVisibility(canAddCommands ? View.VISIBLE : View.GONE); + if (canAddCommands) { + addCommandButton.show(); + } else { + addCommandButton.hide(); + } addCommandButton.setOnClickListener(v -> {