mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-19 05:15:46 -04:00
Android: Fix logo not displaying during loading
This commit is contained in:
@ -74,6 +74,8 @@ public class AndroidHostInterface {
|
||||
public native CheatCode[] getCheatList();
|
||||
public native void setCheatEnabled(int index, boolean enabled);
|
||||
|
||||
public native void addOSDMessage(String message, float duration);
|
||||
|
||||
static {
|
||||
System.loadLibrary("duckstation-native");
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
|
||||
private void showCheatsMenu() {
|
||||
final CheatCode[] cheats = AndroidHostInterface.getInstance().getCheatList();
|
||||
if (cheats == null) {
|
||||
Toast.makeText(this, "No cheats are loaded.", Toast.LENGTH_LONG);
|
||||
AndroidHostInterface.getInstance().addOSDMessage("No cheats are loaded.", 5.0f);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user