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

Skip to content
Commit 08d8bb82 authored by Alejandro Nijamkin's avatar Alejandro Nijamkin Committed by Ale Nijamkin
Browse files

Fixes instant crash in WPP.

Turns out that getClocks() can return a collection that has no clock
that matches the ID returned from getCurrentClockId().

Also, getCurrentClockId() is accessing Settings (which is a content
provider) on the main thread. A separate bug has been filed to fix that
in the ClockRegistry. This CL offers a workaround of moving the
expensive call to the background and for doing it only once instead of
up to N times each time.

Fix: 267356108
Test: WPP no longer crashes. Clocks screen shows the textual list of clocks.
Change-Id: I91eb54697feea53db89f297b7fa2d045028246ae
parent 6f794ed1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment