Esempio n. 1
0
 @Override
 public void onClick(View view) {
   GuiceModule.get().getInstance(InboxViewManager.class).closeDrawer();
   LockScreenManager lockScreenManager =
       GuiceModule.get().getInstance(LockScreenManager.class);
   if (lockScreenManager.isPhoneLocked()) {
     lockScreenManager.unlockAndLaunchApp(this.val$app);
   } else {
     QuickLaunchView.this.appManager.launchAppWithBackButton(
         this.val$app, AppLaunchMethod.Quicklaunch);
   }
 }
Esempio n. 2
0
 public QuickLaunchAdaptor() {
   this.quickLaunchApps = null;
   this.smsPackageName = "";
   GuiceModule.get().injectMembers(this);
   this.settings.registerSettingChangeListener(this);
   this.quickLaunchApps = QuickLaunchView.this.appManager.getQuickLaunchApps();
 }
Esempio n. 3
0
 private void init(AttributeSet attrs, int defStyle) {
   if (!isInEditMode()) {
     GuiceModule.get().injectMembers(this);
     ((LayoutInflater) getContext().getSystemService("layout_inflater"))
         .inflate(R.layout.shade_quick_launch_view, this, true);
     this.mAdapter = new QuickLaunchAdaptor();
     this.mPager = (ViewPager) findViewById(R.id.pager);
     this.mPager.setAdapter(this.mAdapter);
     this.mIndicator = (LinePageIndicator) findViewById(R.id.indicator);
     this.mIndicator.setViewPager(this.mPager);
     this.mAdapter.notifyDataSetChanged();
   }
 }
 public OOBWelcomeMessageGenerator() {
   GuiceModule.get().injectMembers(this);
 }