@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); AppController.getController().getBus().register(this); manager = new GridLayoutManager(this, getResources().getInteger(R.integer.num_row)); recycler.setItemAnimator(new DefaultItemAnimator()); recycler.setHasFixedSize(true); recycler.setLayoutManager(manager); mDrawerLayout.setStatusBarBackgroundColor( AppHelper.getPrimaryDarkColor(AppHelper.getPrimaryColor(this))); navigationView.setItemIconTintList(ColorStateList.valueOf(AppHelper.getAccentColor(this))); if (AppHelper.isDarkTheme(this)) { navigationView.setItemTextColor(ColorStateList.valueOf(AppHelper.getAccentColor(this))); } adapter = new AppsAdapter(this, new ArrayList<AppsModel>()); recycler.setAdapter(adapter); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); if (navigationView != null) { setupDrawerContent(navigationView); } getLoaderManager().restartLoader(0, null, this); productsList.addAll(Arrays.asList(getResources().getStringArray(R.array.in_app_billing))); mHelper = new IabHelper(this, getString(R.string.base64)); mHelper.startSetup(mPurchaseFinishedListener); showWhatsNew(); countBackup(); }