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

Commit 44ff1b7e authored by Amit Pawar's avatar Amit Pawar Committed by android-build-merger
Browse files

Merge "Fix #62169466 bug report sharing options empty" into oc-dev am: 4d473c65

am: e775158c

Change-Id: Ice0e3330502330dde934d7e7544e466fcffcacca
parents a9921924 e775158c
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -958,17 +958,24 @@ public class BugreportProgressService extends Service {
        }

        final Intent notifIntent;
        boolean useChooser = true;

        // Send through warning dialog by default
        if (getWarningState(mContext, STATE_UNKNOWN) != STATE_HIDE) {
            notifIntent = buildWarningIntent(mContext, sendIntent);
            // No need to show a chooser in this case.
            useChooser = false;
        } else {
            notifIntent = sendIntent;
        }
        notifIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

        // Send the share intent...
        if (useChooser) {
            sendShareIntent(mContext, notifIntent);
        } else {
            mContext.startActivity(notifIntent);
        }

        // ... and stop watching this process.
        stopProgress(id);