@AfterInject public void AfterInject() { n_view = new HueNotificationView(context); notificationIcon = R.drawable.notification_icon; notificationID = R.integer.hue_notification; brightness = 100; Intent notificationIntent = new Intent(context, HueNotificationReceiver_.class); n_view.setIntent(notificationIntent); notification = new Notification.Builder(context) .setContent(n_view) .setSmallIcon(notificationIcon) .setOngoing(true) .setPriority(Notification.PRIORITY_MAX) .build(); setBrightness(brightness); }
@AfterInject protected void init() { if (DEBUG) { Log.i(TAG, "service started"); } sampleTime = Configuration.with(this).minimumGpsTimeInMilliseconds(); sampleDistance = Configuration.with(this).minimumGpsDistanceInMeters(); try { locationManager.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, sampleTime, sampleDistance, gpsMonitor.this); } catch (SecurityException ex) { if(DEBUG) { Log.w(TAG, "init()", ex); } } Configuration.with(this).register(this); }
@AfterInject protected void init() { DisplayImageOptions options = new DisplayImageOptions.Builder() .cacheInMemory(true) .cacheOnDisk(true) .displayer(new FadeInBitmapDisplayer(500, true, false, false)) .build(); ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context) .defaultDisplayImageOptions(options) .imageDownloader(this) .build(); loader = com.nostra13.universalimageloader.core.ImageLoader.getInstance(); if (!loader.isInited()) { loader.init(config); } }
@AfterInject public void afterInject() { this.redditClient = new RedditClient(this.userAgentFactory.getUserAgent()); this.authenticationManager = AuthenticationManager.get(); this.authenticationManager.init(this.redditClient, new RefreshTokenHandler(this.tokenStore, this.redditClient)); this.accountManager = new AccountManager(this.redditClient); }
@AfterInject protected void createPaginator() { this.paginator = new SubredditPaginator(this.manager.getClient()); if (this.subreddit != null && this.subreddit.length() > 0) { this.paginator.setSubreddit(this.subreddit); } }
@AfterInject void ok(){ System.out.println(vP.view2); System.out.println(vP.view2.textView); // System.out.println(view2); // vP.view2.radioGroup232.setVisibility(View.VISIBLE); // vP.view2.textView.setText("12"); }
@AfterInject void initContext() { mContext = getApplicationContext(); initCoinType(); initLog(); initVWebDomain(); initWakeLock(); WorkService_.intent(getApplicationContext()).start(); SMSServiceImpl_.intent(getApplicationContext()).start(); AddressService_.intent(getApplicationContext()).start(); }
@AfterInject public void init() { if (holder.getCurrentOverlay() == null) { View overlayView = new OverlayView(this); windowManager.addView(overlayView, OverlayView.createLayoutParams(retrieveStatusBarHeight() + SAFETY_MARGIN)); holder.setCurrentOverlay(overlayView); } holder.hideView(); }
@AfterInject void init() { hue = Hue.getInstance(); hue.setHueListener(new HueListener(context, preferences, this, hueNotification)); transition = preferences.Transitiontime().get(); colorExp = preferences.Colorfullness().get(); briMult = preferences.Brightness().get(); minBri = preferences.MinBrightness().get(); maxBri = preferences.MaxBrightness().get(); isConnected = false; }
@AfterInject void prepareQueries() { try { songInDbQuery = songDao.queryBuilder().where().eq("fullPath", fullPathArg).prepare(); } catch (SQLException se) { throw new RuntimeException(se); } }
@AfterInject void init() { currentVolume = audioManager.getStreamVolume(MUSIC_STREAM); lastVolume = audioManager.getStreamVolume(MUSIC_STREAM); micLow = preferenceProvider.getMicLow(); micHigh = preferenceProvider.getMicHigh(); volumeLow = preferenceProvider.getVolumeLow(); volumeHigh = preferenceProvider.getVolumeHigh(); if (!mediaRecorderInitialised) { initialiseMediaRecorder(); mediaRecorderInitialised = true; } initialiseMicArray(); }
@AfterInject public void addCallbacks() { SingletonHolder.SINGLETON.init(this); SingletonHolder.SINGLETON.getDebrider().registerObserver(this); Uri data = getIntent().getData(); if (data != null) { if (data.toString().startsWith("magnet")) SingletonHolder.SINGLETON.getDebrider().addTorrent(data.toString(), true, false); else SingletonHolder.SINGLETON.getDebrider().unrestrainLink(data.toString()); } }
@AfterInject void setupBuilder() { Intent gameActivityIntent = GameActivity_.intent(context).action(Actions.ACTION_RESUME_GAME).get(); PendingIntent gameActivityPendingIntent = PendingIntent.getActivity(context, 0, gameActivityIntent, 0); builder = new NotificationCompat.Builder(context) .setSmallIcon(R.drawable.icon) .setContentTitle(title) .setContentIntent(gameActivityPendingIntent); }
@AfterInject void init() { setEnabled(false); rpc.registerInitCallback(new Rpc.ConnectionListener() { @Override public void onConnected() { setItemValues(rpc.getAvailableSelfTimers()); setEnabled(true); } @Override public void onConnectionFailed(Throwable e) { } }); }
@AfterInject protected void afterInject() { client.setRestErrorHandler(new RestErrorHandler() { @Override public void onRestClientExceptionThrown(NestedRuntimeException e) { //show Toast and Reload button loadClientData(); } }); }
@AfterInject void afterInject() { adapter = new JsonPreferencesFieldAdapter(this, Data.class); Data data = getData(); if (data.dictionaries == null) { data.dictionaries = new ArrayList<>(); adapter.saveData(data); } }
@AfterInject void afterInject() { random.setSeed(Calendar.getInstance().getTime().getTime()); adapter = new JsonPreferencesFieldAdapter(this, Data.class); if (getRandomSeed() == 0) { refreshRandomSeed(); } }
@AfterInject void init() { for (final UriDependency dependency : UriMatcher.getUriDependencies()) { context.getContentResolver().registerContentObserver(dependency.observe, true, new ContentObserver(null) { @Override public void onChange(boolean selfChange) { super.onChange(selfChange); context.getContentResolver().notifyChange(dependency.notify, null); } }); } }
@AfterInject void initContentProviderClient() { final ContentResolver contentResolver = context.getContentResolver(); contentClient = contentResolver.acquireContentProviderClient(OVirtContract.BASE_CONTENT_URI); SqlBrite sqlBrite = new SqlBrite.Builder().build(); // TODO possibly refactor to use sqlBrite.wrapDatabaseHelper(), but all queries must use SqlBrite briteResolver = sqlBrite.wrapContentProvider(contentResolver, Schedulers.io()); }
@AfterInject void init() { resolvers.put(StorageDomain.class, storageDomainIntentResolver); resolvers.put(Host.class, hostIntentResolver); resolvers.put(Vm.class, vmIntentResolver); resolvers.put(Snapshot.class, snapshotIntentResolver); }
@AfterInject protected void init() { config = configManager.get(); if (config == null) { config = new Config(); } configValidator.setConfig(config); }
@AfterInject protected void init() { getWindow().requestFeature(Window.FEATURE_ACTION_BAR_OVERLAY); actionBarBackground = getResources().getDrawable(R.drawable.ab_solid_selfoss); actionBarBackground.setAlpha(0); getActionBar().setBackgroundDrawable(actionBarBackground); }
@AfterInject protected void init() { this.bypass = new Bypass(this.rootContext); }
@AfterInject protected void afterInject() { this.preferences = this.context.getSharedPreferences(this.tokenFile, Context.MODE_PRIVATE); }
@AfterInject protected void init() { this.credentials = this.manager.getCredentials(); this.helper = this.manager.getClient().getOAuthHelper(); }
@AfterInject void initPriorityAdapter() { mInflater = LayoutInflater.from(mContext); }
@AfterInject void afterInject() { initSubscriptions(); }
@AfterInject void afterInject() { mModel = ScenographyModel.create(this); }
@AfterInject void afterInject() { lbsWallService.setRestErrorHandler(baseRestClientErrorHandling); }
@AfterInject protected void initSlackReporter() { EventBus.getDefault().register(this); }
@AfterInject public void afterMembersInject() { this.mObjectMapper = new ObjectMapper(); this.afterInject(); }
@AfterInject public void afterMembersInject() { }
@AfterInject public void afterMembersInject() { this.updateFromPreferences(); }
@AfterInject public void afterMembersInject() { FragmentManager fm = mMainActivity.getSupportFragmentManager(); this.mMainPagerAdapter = new MainPagerAdapter(fm, mTabsProvider.getTabsList()); }
@AfterInject public void afterMembersInject() { this.mTabsList.add(new IMainTab() { @Override public String getName() { return mContext.getString(R.string.tab_1_name); } @Override public Fragment getFragment() { return SessionsFragment.newInstance(); } }); this.mTabsList.add(new IMainTab() { @Override public String getName() { return mContext.getString(R.string.tab_2_name); } @Override public Fragment getFragment() { return FavoritesFragment.newInstance(); } }); this.mTabsList.add(new IMainTab() { @Override public String getName() { return mContext.getString(R.string.tab_3_name); } @Override public Fragment getFragment() { return CodecampersFragment.newInstance(); } }); this.mTabsList.add(new IMainTab() { @Override public String getName() { return mContext.getString(R.string.tab_name_sponsors); } @Override public Fragment getFragment() { return SponsorsFragment.newInstance(); } }); this.mTabsList.add(new IMainTab() { @Override public String getName() { return mContext.getString(R.string.tab_4_name); } @Override public Fragment getFragment() { return AboutFragment.newInstance(); } }); }
@AfterInject @Override public final void afterMembersInject() { this.afterInject(); }
@AfterInject void initIcons() { Iconify.with(new FontAwesomeModule()); Iconify.with(new BitpieIconFontDescriptor()); }