Skip to content

Commit

Permalink
improve app loading time for VPN app dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Dec 7, 2017
1 parent 544ea7b commit fc4d6aa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Expand Up @@ -200,10 +200,6 @@ public ArrayList<TorifiedApp> getApps (Context context, SharedPreferences prefs)
tordApps[tordIdx++] = st.nextToken();
}

Arrays.sort(tordApps);

//else load the apps up

List<ApplicationInfo> lAppInfo = pMgr.getInstalledApplications(0);

Iterator<ApplicationInfo> itAppInfo = lAppInfo.iterator();
Expand All @@ -212,7 +208,6 @@ public ArrayList<TorifiedApp> getApps (Context context, SharedPreferences prefs)

ApplicationInfo aInfo = null;

int appIdx = 0;
TorifiedApp app = null;

while (itAppInfo.hasNext())
Expand Down Expand Up @@ -285,10 +280,9 @@ public ArrayList<TorifiedApp> getApps (Context context, SharedPreferences prefs)
app.setTorified(false);
}

appIdx++;
}

Collections.sort(apps);
// Collections.sort(apps);

return apps;
}
Expand Down

This file was deleted.

0 comments on commit fc4d6aa

Please sign in to comment.