File tree Expand file tree Collapse file tree
AndroidAnnotations/androidannotations-core
androidannotations-api/src/main/java/org/androidannotations/annotations
androidannotations-test/src/main/java/org/androidannotations/test/efragment
androidannotations/src/main/java/org/androidannotations/internal/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 * ...
4848 *
4949 * @UiThread
50- * @IgnoredWhenDetached
50+ * @IgnoreWhen
5151 * void killActivity() {
5252 * getActivity().finish();
5353 * }
5454 *
5555 *
56- * @IgnoredWhenDetached
56+ * @IgnoreWhen
5757 * void updateTitle(String title) {
5858 * getActivity().setTitle(title);
5959 * }
6969 */
7070@ Retention (RetentionPolicy .CLASS )
7171@ Target (ElementType .METHOD )
72- public @interface IgnoredWhenDetached {
72+ public @interface IgnoreWhen {
7373
7474}
Original file line number Diff line number Diff line change 1717
1818import org .androidannotations .annotations .Background ;
1919import org .androidannotations .annotations .EFragment ;
20- import org .androidannotations .annotations .IgnoredWhenDetached ;
20+ import org .androidannotations .annotations .IgnoreWhen ;
2121import org .androidannotations .annotations .ItemClick ;
2222import org .androidannotations .annotations .UiThread ;
2323import org .androidannotations .annotations .ViewById ;
@@ -58,7 +58,7 @@ void uiThread() {
5858 }
5959
6060 @ UiThread (propagation = UiThread .Propagation .REUSE )
61- @ IgnoredWhenDetached
61+ @ IgnoreWhen
6262 void uiThreadIgnored () {
6363 didExecute = true ;
6464 }
@@ -74,12 +74,12 @@ void backgroundThread() {
7474 }
7575
7676 @ Background
77- @ IgnoredWhenDetached
77+ @ IgnoreWhen
7878 void backgroundThreadIgnored () {
7979 didExecute = true ;
8080 }
8181
82- @ IgnoredWhenDetached
82+ @ IgnoreWhen
8383 void ignored () {
8484 didExecute = true ;
8585 }
Original file line number Diff line number Diff line change 6060import org .androidannotations .internal .core .handler .HierarchyViewerSupportHandler ;
6161import org .androidannotations .internal .core .handler .HtmlResHandler ;
6262import org .androidannotations .internal .core .handler .HttpsClientHandler ;
63- import org .androidannotations .internal .core .handler .IgnoredWhenDetachedHandler ;
63+ import org .androidannotations .internal .core .handler .IgnoreWhenHandler ;
6464import org .androidannotations .internal .core .handler .InjectMenuHandler ;
6565import org .androidannotations .internal .core .handler .InstanceStateHandler ;
6666import org .androidannotations .internal .core .handler .ItemClickHandler ;
@@ -206,7 +206,7 @@ public List<AnnotationHandler<?>> getHandlers(AndroidAnnotationsEnvironment andr
206206 annotationHandlers .add (new PageScrollStateChangedHandler (androidAnnotationEnv ));
207207 annotationHandlers .add (new PageSelectedHandler (androidAnnotationEnv ));
208208
209- annotationHandlers .add (new IgnoredWhenDetachedHandler (androidAnnotationEnv ));
209+ annotationHandlers .add (new IgnoreWhenHandler (androidAnnotationEnv ));
210210
211211 annotationHandlers .add (new AfterInjectHandler (androidAnnotationEnv ));
212212 annotationHandlers .add (new AfterExtrasHandler (androidAnnotationEnv ));
@@ -231,7 +231,7 @@ public List<AnnotationHandler<?>> getHandlers(AndroidAnnotationsEnvironment andr
231231
232232 /*
233233 * UIThreadHandler and BackgroundHandler must be after TraceHandler and
234- * IgnoredWhenDetached
234+ * IgnoreWhen
235235 */
236236 annotationHandlers .add (new UiThreadHandler (androidAnnotationEnv ));
237237 annotationHandlers .add (new BackgroundHandler (androidAnnotationEnv ));
Original file line number Diff line number Diff line change 2323
2424import org .androidannotations .AndroidAnnotationsEnvironment ;
2525import org .androidannotations .ElementValidation ;
26- import org .androidannotations .annotations .IgnoredWhenDetached ;
26+ import org .androidannotations .annotations .IgnoreWhen ;
2727import org .androidannotations .handler .BaseAnnotationHandler ;
2828import org .androidannotations .holder .EFragmentHolder ;
2929
3030import com .helger .jcodemodel .JBlock ;
3131import com .helger .jcodemodel .JMethod ;
3232
33- public class IgnoredWhenDetachedHandler extends BaseAnnotationHandler <EFragmentHolder > {
33+ public class IgnoreWhenHandler extends BaseAnnotationHandler <EFragmentHolder > {
3434
35- public IgnoredWhenDetachedHandler (AndroidAnnotationsEnvironment environment ) {
36- super (IgnoredWhenDetached .class , environment );
35+ public IgnoreWhenHandler (AndroidAnnotationsEnvironment environment ) {
36+ super (IgnoreWhen .class , environment );
3737 }
3838
3939 @ Override
You can’t perform that action at this time.
0 commit comments