导航菜单

页面标题

页面副标题

自健身 v3.3.4 - CropActivity.java 源代码

正在查看: 自健身 v3.3.4 应用的 CropActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mu.gymtrain.Widget.PicChosePackage.crop;

import android.content.Context;
import android.content.Intent;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.bumptech.glide.Glide;
import com.mu.gymtrain.Base.BaseActivity;
import com.mu.gymtrain.R;

public class CropActivity extends BaseActivity implements View.OnClickListener {
    private static SelectOptions mOption;
    private CropLayout mCropLayout;

    public int getContentLayout() {
        return R.layout.activity_crop;
    }

    public static void show(Fragment fragment, SelectOptions options) {
        Intent intent = new Intent((Context) fragment.getActivity(), (Class<?>) CropActivity.class);
        mOption = options;
        fragment.startActivityForResult(intent, 4);
    }

    public void initData() {
        Glide.with(this).load(mOption.getSelectedImages().get(0)).into(this.mCropLayout.getImageView());
        this.mCropLayout.setCropWidth(mOption.getCropWidth());
        this.mCropLayout.setCropHeight(mOption.getCropHeight());
        this.mCropLayout.start();
    }

    public void initView() {
        setTitle("");
        getWindow().setLayout(-1, -1);
        this.mCropLayout = (CropLayout) findViewById(R.id.cropLayout);
    }

    @Override
    @butterknife.OnClick({com.mu.gymtrain.R.id.tv_crop, com.mu.gymtrain.R.id.tv_cancel})
    public void onClick(android.view.View r7) {
        throw new UnsupportedOperationException("Method not decompiled: com.mu.gymtrain.Widget.PicChosePackage.crop.CropActivity.onClick(android.view.View):void");
    }

    protected void onDestroy() {
        mOption = null;
        super.onDestroy();
    }
}