Ejemplo 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);
   }
 }
Ejemplo n.º 2
0
 public QuickLaunchAdaptor() {
   this.quickLaunchApps = null;
   this.smsPackageName = "";
   GuiceModule.get().injectMembers(this);
   this.settings.registerSettingChangeListener(this);
   this.quickLaunchApps = QuickLaunchView.this.appManager.getQuickLaunchApps();
 }
Ejemplo 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);
 }