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

Commit 18376cc9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when refreshing timeouts."

parents 16f9533b 3777a1bc
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);
    }
}