summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ajinkya Chalke <achalke@google.com> 2023-05-03 10:42:34 +0000
committer Ajinkya Chalke <achalke@google.com> 2023-05-03 10:44:57 +0000
commitf7e7b11d357947e03f349d6857d94e5b244fbf1b (patch)
tree64505124cad1d17a542ef148f219ab6cd6d23806
parent348bb0e22c5f81e1ce4e5f91abda3752bed969ed (diff)
Remove zoom from app clips.
Bug: 279906362 Test: atest AppClipsActivityTest Change-Id: Ia5317bc050ef9977840e89a9f106214fdf0d9357
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java b/packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java
index 4756cc8172e9..72613249552a 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java
@@ -53,7 +53,6 @@ import com.android.internal.logging.UiEventLogger.UiEventEnum;
import com.android.settingslib.Utils;
import com.android.systemui.R;
import com.android.systemui.screenshot.CropView;
-import com.android.systemui.screenshot.MagnifierView;
import com.android.systemui.settings.UserTracker;
import javax.inject.Inject;
@@ -93,7 +92,6 @@ public class AppClipsActivity extends ComponentActivity {
private View mRoot;
private ImageView mPreview;
private CropView mCropView;
- private MagnifierView mMagnifierView;
private Button mSave;
private Button mCancel;
private AppClipsViewModel mViewModel;
@@ -156,9 +154,8 @@ public class AppClipsActivity extends ComponentActivity {
mSave.setOnClickListener(this::onClick);
mCancel.setOnClickListener(this::onClick);
- mMagnifierView = mLayout.findViewById(R.id.magnifier);
+
mCropView = mLayout.findViewById(R.id.crop_view);
- mCropView.setCropInteractionListener(mMagnifierView);
mPreview = mLayout.findViewById(R.id.preview);
mPreview.addOnLayoutChangeListener(
@@ -218,8 +215,6 @@ public class AppClipsActivity extends ComponentActivity {
mPreview.setImageDrawable(drawable);
mPreview.setAlpha(1f);
- mMagnifierView.setDrawable(drawable, screenshot.getWidth(), screenshot.getHeight());
-
// Screenshot is now available so set content view.
setContentView(mLayout);
}