mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-31 22:25:08 +00:00
Remove private API usage
This commit is contained in:
@@ -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 -> {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user