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

Commit 49174aff authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fix crash when receive wrong intent"

parents 6fa0c1cf 85237078
Loading
Loading
Loading
Loading
+12 −8
Original line number Original line Diff line number Diff line
@@ -357,6 +357,7 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
                || ACTION_REVIEW.equalsIgnoreCase(action)){
                || ACTION_REVIEW.equalsIgnoreCase(action)){
            mDrawerLayoutSupported = false;
            mDrawerLayoutSupported = false;
            Uri uri = intent.getData();
            Uri uri = intent.getData();
            if (uri != null) {
                int flag = intent.getFlags();
                int flag = intent.getFlags();
                int match = sURIMatcher.match(uri);
                int match = sURIMatcher.match(uri);
                if ((match == ALL_DOWNLOADS || match == ALL_DOWNLOADS_ID) &&
                if ((match == ALL_DOWNLOADS || match == ALL_DOWNLOADS_ID) &&
@@ -367,6 +368,9 @@ public final class GalleryActivity extends AbstractGalleryActivity implements On
                        return;
                        return;
                    }
                    }
                }
                }
            } else {
                Log.w(TAG, "uri get from intent is null");
            }
            startViewAction(intent);
            startViewAction(intent);
        } else {
        } else {
            mDrawerLayoutSupported = true;
            mDrawerLayoutSupported = true;