commit fc4d6aab215ce0f613e193de25d43bae0e45c3f1 Author: n8fr8 nathan@freitas.net Date: Thu Dec 7 12:53:52 2017 -0500
improve app loading time for VPN app dialog --- .../main/java/org/torproject/android/ui/AppManagerActivity.java | 8 +------- app/src/main/java/org/torproject/android/ui/VPNSetupActivity.java | 5 ----- 2 files changed, 1 insertion(+), 12 deletions(-)
diff --git a/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java b/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java index 30e52ebc..0acef3e7 100644 --- a/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java +++ b/app/src/main/java/org/torproject/android/ui/AppManagerActivity.java @@ -200,10 +200,6 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList tordApps[tordIdx++] = st.nextToken(); }
- Arrays.sort(tordApps); - - //else load the apps up - List<ApplicationInfo> lAppInfo = pMgr.getInstalledApplications(0);
Iterator<ApplicationInfo> itAppInfo = lAppInfo.iterator(); @@ -212,7 +208,6 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList
ApplicationInfo aInfo = null;
- int appIdx = 0; TorifiedApp app = null;
while (itAppInfo.hasNext()) @@ -285,10 +280,9 @@ public class AppManagerActivity extends AppCompatActivity implements OnClickList app.setTorified(false); }
- appIdx++; }
- Collections.sort(apps); + // Collections.sort(apps);
return apps; } diff --git a/app/src/main/java/org/torproject/android/ui/VPNSetupActivity.java b/app/src/main/java/org/torproject/android/ui/VPNSetupActivity.java deleted file mode 100644 index d8674c00..00000000 --- a/app/src/main/java/org/torproject/android/ui/VPNSetupActivity.java +++ /dev/null @@ -1,5 +0,0 @@ -package org.torproject.android.ui; - -public class VPNSetupActivity { - -}
tor-commits@lists.torproject.org