Skip to content

Commit

Permalink
it works!
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jul 4, 2024
1 parent 01f6d69 commit e646bfd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,8 @@ public boolean onKeyUp(int keyCode, KeyEvent event) {
private boolean handleKeyEvent(int keyCode, KeyEvent event) {
Log.d("keyboard", event.toString());
// Se non hai gestito l'evento, passa al gestore predefinito
scrcpy.sendKeyevent(keyCode);
if(scrcpy != null)
scrcpy.sendKeyevent(keyCode);
return super.onKeyDown(keyCode, event);
}

Expand Down Expand Up @@ -625,6 +626,10 @@ private void licenseReply(String response) {
private void licenseRequest() {
runOnUiThread(() -> {
final EditText editText_patreon = findViewById(R.id.editText_patreon);
if(editText_patreon == null) {
handler.postDelayed(licenseRunnable, 30000); // 30 seconds delay
return;
}
String userEmail = editText_patreon.getText().toString();
if(userEmail.length() == 0) {
handler.postDelayed(licenseRunnable, 30000); // 30 seconds delay
Expand Down

0 comments on commit e646bfd

Please sign in to comment.