2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-30 13:47:41 +00:00

Remove private API usage

This commit is contained in:
Albert Vaca
2019-03-20 22:07:02 +01:00
parent adac026dfa
commit b689548aa9

View File

@@ -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 -> {