Skip to content

Commit

Permalink
Fix NullPointerException on some CM12 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersantos committed Jun 4, 2015
1 parent 952514c commit 3df2434
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/src/main/java/com/javiersantos/mlmanager/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

Expand Down Expand Up @@ -152,12 +151,6 @@ public int compare(PackageInfo p1, PackageInfo p2) {
for(PackageInfo packageInfo : packages) {
if(packageManager.getLaunchIntentForPackage(packageInfo.packageName) != null) {
// Non System Apps
Log.i("App", packageManager.getApplicationLabel(packageInfo.applicationInfo).toString());
Log.i("App", packageInfo.packageName);
Log.i("App", packageInfo.versionName);
Log.i("App", packageInfo.applicationInfo.packageName);
Log.i("App", packageInfo.applicationInfo.sourceDir);
Log.i("App", packageInfo.applicationInfo.dataDir);
appListName.add(packageManager.getApplicationLabel(packageInfo.applicationInfo).toString());
appListAPK.add(packageInfo.packageName);
appListVersion.add(packageInfo.versionName);
Expand All @@ -166,12 +159,6 @@ public int compare(PackageInfo p1, PackageInfo p2) {
appListIcon.add(packageManager.getApplicationIcon(packageInfo.applicationInfo));
} else {
// System Apps
Log.i("App", packageManager.getApplicationLabel(packageInfo.applicationInfo).toString());
Log.i("App", packageInfo.packageName);
Log.i("App", packageInfo.versionName);
Log.i("App", packageInfo.applicationInfo.packageName);
Log.i("App", packageInfo.applicationInfo.sourceDir);
Log.i("App", packageInfo.applicationInfo.dataDir);
appSystemListName.add(packageManager.getApplicationLabel(packageInfo.applicationInfo).toString());
appSystemListAPK.add(packageInfo.packageName);
appSystemListVersion.add(packageInfo.versionName);
Expand Down

0 comments on commit 3df2434

Please sign in to comment.