@Override public void jump2PGEditActivity() { int memoryClass = ((ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE)).getMemoryClass(); if (memoryClass <= 48) { ImageLoaderManager.clearMemoryCache(); } mRxPhotoNote .findByCategoryId(mCategoryId, mComparator) .map(photoNoteList -> photoNoteList.get(mPosition)) .observeOn(AndroidSchedulers.mainThread()) .subscribe( photoNote -> { String path = photoNote.getBigPhotoPathWithoutFile(); if (!path.endsWith(".jpg")) { mZoomView.showSnackBar( mContext.getResources().getString(R.string.toast_pgedit_not_support)); } else { mZoomView.jump2PGEditActivity(path); } }); }