Commit b689548a authored by Albert Vaca Cintora's avatar Albert Vaca Cintora
Browse files

Remove private API usage

parent adac026d
...@@ -111,7 +111,11 @@ public class RunCommandActivity extends AppCompatActivity { ...@@ -111,7 +111,11 @@ public class RunCommandActivity extends AppCompatActivity {
boolean canAddCommands = BackgroundService.getInstance().getDevice(deviceId).getPlugin(RunCommandPlugin.class).canAddCommand(); boolean canAddCommands = BackgroundService.getInstance().getDevice(deviceId).getPlugin(RunCommandPlugin.class).canAddCommand();
FloatingActionButton addCommandButton = findViewById(R.id.add_command_button); 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 -> { addCommandButton.setOnClickListener(v -> {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment