diff --git a/app/src/main/java/fr/free/nrw/commons/CommonsApplication.java b/app/src/main/java/fr/free/nrw/commons/CommonsApplication.java index b9ec73863..ee0f10019 100644 --- a/app/src/main/java/fr/free/nrw/commons/CommonsApplication.java +++ b/app/src/main/java/fr/free/nrw/commons/CommonsApplication.java @@ -61,17 +61,6 @@ public class CommonsApplication extends DaggerApplication { private CommonsApplicationComponent component; private RefWatcher refWatcher; - /** - * Provides a way to get member refWatcher - * - * @param context Application context - * @return application member refWatcher - */ - public static RefWatcher getRefWatcher(Context context) { - CommonsApplication application = (CommonsApplication) context.getApplicationContext(); - return application.refWatcher; - } - /** * Used to declare and initialize various components and dependencies */ @@ -106,11 +95,22 @@ public class CommonsApplication extends DaggerApplication { } return LeakCanary.install(this); } - - /** - * Helps in injecting dependency library Dagger - * @return Dagger injector + + /** + * Provides a way to get member refWatcher + * + * @param context Application context + * @return application member refWatcher */ + public static RefWatcher getRefWatcher(Context context) { + CommonsApplication application = (CommonsApplication) context.getApplicationContext(); + return application.refWatcher; + } + + /** + * Helps in injecting dependency library Dagger + * @return Dagger injector + */ @Override protected AndroidInjector applicationInjector() { return injector();