Skip to content

Commit

Permalink
Why not just schedule directly...
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Jan 12, 2023
1 parent 241d867 commit f38dd95
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions android/src/org/ppsspp/ppsspp/SizeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,10 @@ public void checkDisplayMeasurements() {
}
displayUpdatePending = true;

final Runnable updater = new Runnable() {
public void run() {
activity.runOnUiThread(() -> {
Log.d(TAG, "checkDisplayMeasurements: checking now");
updateDisplayMeasurements();
});
}
};

final Handler handler = new Handler(Looper.getMainLooper());
handler.post(updater);
activity.runOnUiThread(() -> {
Log.d(TAG, "checkDisplayMeasurements: checking now");
updateDisplayMeasurements();
});
}

@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
Expand Down

0 comments on commit f38dd95

Please sign in to comment.