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

Commit 8c0412c8 authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Removed toast messsage sent after screenshot is taken." into nyc-dev

parents fcd6e7cb 5d9000aa
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -710,7 +710,7 @@ public class BugreportProgressService extends Service {
        }
        final File screenshotFile = new File((String) resultMsg.obj);

        final int msgId;
        final String msg;
        if (taken) {
            info.addScreenshot(screenshotFile);
            if (info.finished) {
@@ -718,14 +718,13 @@ public class BugreportProgressService extends Service {
                info.renameScreenshots(mScreenshotsDir);
                sendBugreportNotification(mContext, info);
            }
            msgId = R.string.bugreport_screenshot_taken;
            msg = mContext.getString(R.string.bugreport_screenshot_taken);
        } else {
            // TODO: try again using Framework APIs instead of relying on screencap.
            msgId = R.string.bugreport_screenshot_failed;
            msg = mContext.getString(R.string.bugreport_screenshot_failed);
            Toast.makeText(mContext, msg, Toast.LENGTH_SHORT).show();
        }
        final String msg = mContext.getString(msgId);
        Log.d(TAG, msg);
        Toast.makeText(mContext, msg, Toast.LENGTH_SHORT).show();
    }

    /**