mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-27 15:26:58 +00:00
Refactoring startShareActivity to allow crop to be passed in.
This is necessary to start a share activity based on a single image from Launcher. Bug: 169772466, 169799864 Change-Id: I8a2baaa978a83f289e558dcd5d9be5ca6a164b2f
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user