Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d717bac6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Skip failing PreferenceScreens in DeviceState" into main

parents 55e46a8b c7c3ef4a
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -108,7 +108,14 @@ class DeviceStateAppFunctionService : AppFunctionService() {
        val perScreenDeviceStatesList: MutableList<PerScreenDeviceStates> = ArrayList()
        coroutineScope {
            val deferredList = screenKeyList.map { screenKey ->
                async { buildPerScreenDeviceStates(screenKey, requestCategory) }
                async {
                    try {
                        buildPerScreenDeviceStates(screenKey, requestCategory)
                    } catch (e: Exception) {
                        Log.e(TAG, "error building $screenKey", e)
                        null
                    }
                }
            }
            deferredList.awaitAll().forEach {
                if (it != null) {