mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-21 12:03:02 +00:00
Show a nicer configuration toast
This commit is contained in:
parent
250475830f
commit
d9483d9214
@ -63,12 +63,17 @@ public class VirtualController {
|
|||||||
buttonConfigure.setOnClickListener(new View.OnClickListener() {
|
buttonConfigure.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
String message;
|
||||||
|
|
||||||
if (currentMode == ControllerMode.Configuration) {
|
if (currentMode == ControllerMode.Configuration) {
|
||||||
currentMode = ControllerMode.Active;
|
currentMode = ControllerMode.Active;
|
||||||
|
message = "Exiting configuration mode";
|
||||||
} else {
|
} else {
|
||||||
currentMode = ControllerMode.Configuration;
|
currentMode = ControllerMode.Configuration;
|
||||||
|
message = "Entering configuration mode";
|
||||||
}
|
}
|
||||||
Toast.makeText(context, "CHANGE MODE " + currentMode, Toast.LENGTH_SHORT).show();
|
|
||||||
|
Toast.makeText(context, message, Toast.LENGTH_SHORT).show();
|
||||||
|
|
||||||
relative_layout.invalidate();
|
relative_layout.invalidate();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user