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

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

Merge "DO NOT MERGE: Not to crash DocumentsUI if moving cursor fails." into nyc-mr1-dev

parents c8358bfe d91dd17f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -157,6 +157,9 @@ public class RecentsLoader extends AsyncTaskLoader<DirectoryResult> {
                    throw new RuntimeException(e);
                } catch (ExecutionException e) {
                    // We already logged on other side
                } catch (Exception e) {
                    Log.e(TAG, "Failed to query Recents for authority: " + task.authority
                        + ". Skip this authority in Recents.", e);
                }
            } else {
                allDone = false;
+7 −1
Original line number Diff line number Diff line
@@ -107,7 +107,13 @@ public class Model {
        mSortOrder = result.sortOrder;
        doc = result.doc;

        try {
            updateModelData();
        } catch (Exception e) {
            Log.e(TAG, "Error while accessing cursors", e);
            notifyUpdateListeners(e);
            return;
        }

        final Bundle extras = mCursor.getExtras();
        if (extras != null) {