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

Commit f7e7b11d authored by Ajinkya Chalke's avatar Ajinkya Chalke
Browse files

Remove zoom from app clips.

Bug: 279906362
Test: atest AppClipsActivityTest
Change-Id: Ia5317bc050ef9977840e89a9f106214fdf0d9357
parent 348bb0e2
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -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);
    }