Merge "Refactoring startShareActivity to allow crop to be passed in." into sc-dev am: 6a53655df5

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/13420561

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3dd1f6a28dfffd6829057e9f86e8ca39c1ab01e4
This commit is contained in:
TreeHugger Robot authored and Automerger Merge Worker committed 2021-01-28 20:45:18 +00:00
commit 2b5cee9830
2 files changed
+3 -3

No files matched your search

@@ -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);
}
/**
@@ -159,7 +159,7 @@ public class TaskOverlayFactory implements ResourceBasedOverride {
@Override
public void onShare() {
if (isAllowedByPolicy) {
endLiveTileMode(mImageApi::startShareActivity);
endLiveTileMode(() -> mImageApi.startShareActivity(null));
} else {
showBlockedByPolicyMessage();
}