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

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

Merge "Refactoring startShareActivity to allow crop to be passed in." into sc-dev

parents 61096e9b e7915e13
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -83,8 +83,8 @@ public class ImageActionsApi {
     * Share the image this api was constructed with.
     */
    @UiThread
    public void startShareActivity() {
        ImageActionUtils.startShareActivity(mContext, mBitmapSupplier, null, null, TAG);
    public void startShareActivity(Rect crop) {
        ImageActionUtils.startShareActivity(mContext, mBitmapSupplier, crop, null, TAG);
    }

    /**
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
                    @Override
                    public void onShare() {
                        if (isAllowedByPolicy) {
                            endLiveTileMode(mImageApi::startShareActivity);
                            endLiveTileMode(() -> mImageApi.startShareActivity(null));
                        } else {
                            showBlockedByPolicyMessage();
                        }