@Override public void onCreate() { super.onCreate(); mPwcApplication = this; mActivities = new LinkedList<>(); init(BuildConfig.DEBUG_MODE); }
@Override public void init(Boolean debug) { super.init(debug); LeakCanary.install(this); initDataBase(); ButterKnife.setDebug(BuildConfig.DEBUG_MODE); SharedPreHelper.init(AppConfig.SHARED_PRE_FILE_NAME); DiskLruCacheUtil.init(AppConfig.MAX_CACHE_VALUE, AppConfig.CACHE_FOLDER); AppConfig.MODE_CONNECTION = (boolean) SharedPreHelper.get(this, Constants.MODE_CONNECTION, true); registerActivityLifecycleCallbacks(new ActivityLifeRecycleHandler()); }