mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-25 08:33:27 +00:00
Call updateSustainedPerformanceMode on app focus changes. Should help #11018
This commit is contained in:
parent
ecee4c74b3
commit
7d3efdc237
@ -561,6 +561,12 @@ public abstract class NativeActivity extends Activity implements SurfaceHolder.C
|
||||
holder.setFixedSize(desiredSize.x, desiredSize.y);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onWindowFocusChanged(boolean hasFocus) {
|
||||
super.onWindowFocusChanged(hasFocus);
|
||||
updateSustainedPerformanceMode();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
|
||||
Log.v(TAG, "surfaceChanged: isCreating:" + holder.isCreating() + " holder: " + holder.toString());
|
||||
|
Loading…
x
Reference in New Issue
Block a user