整理Entrance type
This commit is contained in:
@ -74,7 +74,7 @@ public class CropImageActivity extends BaseActivity {
|
||||
@NonNull
|
||||
public static Intent getIntent(Context context, String picturePath, String entrance) {
|
||||
Intent intent = new Intent(context, CropImageActivity.class);
|
||||
intent.putExtra("path", picturePath);
|
||||
intent.putExtra(EntranceUtils.KEY_PATH, picturePath);
|
||||
intent.putExtra(EntranceUtils.KEY_ENTRANCE, entrance);
|
||||
return intent;
|
||||
}
|
||||
@ -184,7 +184,7 @@ public class CropImageActivity extends BaseActivity {
|
||||
sp.edit().putString("updateIconCount", jsonObject.toString()).apply();
|
||||
|
||||
Intent data = new Intent();
|
||||
data.putExtra("url", result.getString("icon"));
|
||||
data.putExtra(EntranceUtils.KEY_URL, result.getString("icon"));
|
||||
setResult(RESULT_OK, data);
|
||||
finish();
|
||||
|
||||
@ -226,7 +226,7 @@ public class CropImageActivity extends BaseActivity {
|
||||
super.onWindowFocusChanged(hasFocus);
|
||||
if (hasFocus && (reference == null || reference.get() == null)) {
|
||||
ImageView imageView = mCropimageCustom.getCropImageZoomView();
|
||||
Bitmap bitmap = BitmapUtils.getBitmapByFile(getIntent().getStringExtra("path"),
|
||||
Bitmap bitmap = BitmapUtils.getBitmapByFile(getIntent().getStringExtra(EntranceUtils.KEY_PATH),
|
||||
imageView.getWidth(), imageView.getHeight());
|
||||
if (bitmap != null) {
|
||||
reference = new SoftReference<>(bitmap);
|
||||
|
||||
Reference in New Issue
Block a user