命名规则
This commit is contained in:
@ -47,7 +47,7 @@ import rx.schedulers.Schedulers;
|
||||
public class CropImageActivity extends BaseActivity {
|
||||
|
||||
@BindView(R.id.cropimage_custom)
|
||||
CropImageCustom cropimage_custom;
|
||||
CropImageCustom mCropimageCustom;
|
||||
|
||||
private SoftReference<Bitmap> reference;
|
||||
|
||||
@ -107,7 +107,7 @@ public class CropImageActivity extends BaseActivity {
|
||||
Observable.create(new Observable.OnSubscribe<Boolean>() {
|
||||
@Override
|
||||
public void call(Subscriber<? super Boolean> subscriber) {
|
||||
subscriber.onNext(cropimage_custom.savePicture(path));
|
||||
subscriber.onNext(mCropimageCustom.savePicture(path));
|
||||
subscriber.onCompleted();
|
||||
}
|
||||
}).flatMap(new Func1<Boolean, Observable<String>>() {
|
||||
@ -230,7 +230,7 @@ public class CropImageActivity extends BaseActivity {
|
||||
public void onWindowFocusChanged(boolean hasFocus) {
|
||||
super.onWindowFocusChanged(hasFocus);
|
||||
if (hasFocus && (reference == null || reference.get() == null)) {
|
||||
ImageView imageView = cropimage_custom.getCropImageZoomView();
|
||||
ImageView imageView = mCropimageCustom.getCropImageZoomView();
|
||||
Bitmap bitmap = BitmapUtils.getBitmapByFile(getIntent().getStringExtra("path"),
|
||||
imageView.getWidth(), imageView.getHeight());
|
||||
if (bitmap != null) {
|
||||
|
||||
Reference in New Issue
Block a user