예제 #1
0
 @Override
 public final View onCreateView(
     LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
   View view = onCreateView(savedInstanceState, inflater, container);
   Injector.inject(view, this);
   injected = true;
   return view;
 }
 public AbstractPrefsManager(Context ctx, String prefsName, int version) {
   Injector.inject(ctx, this);
   this.ctx = ctx.getApplicationContext();
   if (isEmpty(prefsName)) {
     prefs = PreferenceManager.getDefaultSharedPreferences(ctx);
   } else {
     prefs = ctx.getSharedPreferences(prefsName, MODE_PRIVATE);
   }
   init(version);
 }
예제 #3
0
 @Override
 public void onCreate() {
   super.onCreate();
   Injector.inject(this);
 }
예제 #4
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   onPreInject();
   Injector.inject(this);
 }
예제 #5
0
 public AsyncTask(Context ctx, AsyncTaskResultListener<Result> resultListener) {
   Injector.inject(ctx, this);
   this.ctx = ctx.getApplicationContext();
   this.resultListener = resultListener;
 }