Loading packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java +1 −6 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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( Loading Loading @@ -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); } Loading Loading
packages/SystemUI/src/com/android/systemui/screenshot/appclips/AppClipsActivity.java +1 −6 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading Loading @@ -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( Loading Loading @@ -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); } Loading