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

Commit c9f23f04 authored by Tomasz Mikolajewski's avatar Tomasz Mikolajewski
Browse files

Fix crash when refreshing timeouts.

Test: Tested on an archvie and internal storage.
Change-Id: I583ca77d0046ed05dbec3f9ea9f845c1be7bc2bd
(cherry picked from commit 3777a1bc)
parent 5b700b7b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -106,12 +106,13 @@ public class RefreshTask extends TimeoutTask<Void, Boolean> {
    @Override
    public void finish(Boolean refreshSupported) {
        if (DEBUG) {
            if (refreshSupported) {
            // In case of timeout, refreshSupported is null.
            if (Boolean.TRUE.equals(refreshSupported)) {
                Log.v(TAG, "Provider supports refresh and has refreshed");
            } else {
                Log.v(TAG, "Provider does not support refresh and did not refresh");
            }
        }
        mCallback.accept(refreshSupported);
        mCallback.accept(refreshSupported != null ? refreshSupported : Boolean.FALSE);
    }
}