@ Subscribe ( sticky = true , threadMode = ThreadMode . MAIN ) public void onEventMainThread ( MediaEvent event ) { RTEditText editor = mEditors . get ( mActiveEditor ) ; RTMedia media = event . getMedia ( ) ; if ( editor != null && media instanceof RTImage ) { insertImage ( editor , ( RTImage ) media ) ; EventBus . getDefault ( ) . removeStickyEvent ( event ) ; mActiveEditor = Integer . MAX_VALUE ; } }
Media file was picked - > process the result .