MiniumApps/launcher3/src/main/java/co/siempo/phone/activities/JunkfoodFlaggingActivity.java
/**
     * load system apps and filter the application for junkfood and normal.
     */
load system apps and filter the application for junkfood and normal.
load system apps and filter the application for junkfood and normal .
private void loadApps() {
        if (PrefSiempo.getInstance(this).read(PrefSiempo.IS_JUNKFOOD_FIRSTTIME, true)) {
            PrefSiempo.getInstance(this).write(PrefSiempo.IS_JUNKFOOD_FIRSTTIME, false);
            showFirstTimeDialog();
        }
        List<String> installedPackageListLocal = CoreApplication.getInstance().getPackagesList();
        Log.d("Junkfood", "" + installedPackageListLocal.size());
        installedPackageListLocal.remove(Constants.SETTINGS_APP_PACKAGE);
        installedPackageList = new ArrayList<>();
        List<String> appList = new ArrayList<>(installedPackageListLocal);
        favoriteList = PrefSiempo.getInstance(this).read(PrefSiempo.FAVORITE_APPS, new HashSet<String>());
        List<String> toolsAppList = getToolsAppList();
        if (toolsAppList != null && favoriteList != null) {
            appList.removeAll(favoriteList);
        }
        installedPackageList = appList;
        bindData();
    }
private void loadApps ( ) { if ( PrefSiempo . getInstance ( this ) . read ( PrefSiempo . IS_JUNKFOOD_FIRSTTIME , true ) ) { PrefSiempo . getInstance ( this ) . write ( PrefSiempo . IS_JUNKFOOD_FIRSTTIME , false ) ; showFirstTimeDialog ( ) ; } List < String > installedPackageListLocal = CoreApplication . getInstance ( ) . getPackagesList ( ) ; Log . d ( "Junkfood" , "" + installedPackageListLocal . size ( ) ) ; installedPackageListLocal . remove ( Constants . SETTINGS_APP_PACKAGE ) ; installedPackageList = new ArrayList < > ( ) ; List < String > appList = new ArrayList < > ( installedPackageListLocal ) ; favoriteList = PrefSiempo . getInstance ( this ) . read ( PrefSiempo . FAVORITE_APPS , new HashSet < String > ( ) ) ; List < String > toolsAppList = getToolsAppList ( ) ; if ( toolsAppList != null && favoriteList != null ) { appList . removeAll ( favoriteList ) ; } installedPackageList = appList ; bindData ( ) ; }
load system apps and filter the application for junkfood and normal.
load system apps and filter the application for junkfood and normal .
//Adding for ToolAppList //            appList.removeAll(toolsAppList); //        new FilterApps(false).execute();