Merge "Refactoring startShareActivity to allow crop to be passed in."

This commit is contained in:
Sreyas Rangaraju
2021-01-27 19:19:08 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}
/**

View File

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