mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Remove private API usage
This commit is contained in:
parent
adac026dfa
commit
b689548aa9
@ -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 -> {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user