-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Description:
HardwareBufferSurfaceView.kt
- In render(), the method initGLES() is called synchronously.
- initGLES() contains heavy GLES/EGL initialization logic that may block the UI thread, potentially causing jank or dropped frames.
- According to Android official guidelines, GPU/EGL/GLES initialization should not be performed on the UI thread to avoid frame drops or ANRs.
GUIConfigActivity.kt
- In onPause(), the method save() synchronously writes settings using SharedPreferences.commit().
- Synchronous commit may block the UI thread. It is recommended to use apply() for asynchronous writes to improve responsiveness.
GUIWidgetConfigurationActivity.kt
- In onCreate(), getIDMappingPrefs() is called synchronously.
- EncryptedSharedPreferences.create() inside this method can be time-consuming, as reported by multiple developers on StackOverflow.
- To avoid blocking the UI thread, this initialization should be moved off the main thread.
- Additionally, any commit() calls should be replaced with apply() to prevent potential UI blocking.
Metadata
Metadata
Assignees
Labels
No labels