From e483ff64cb63df923fc5e149dd95250015f996ac Mon Sep 17 00:00:00 2001 From: Benjamin Orsini Date: Wed, 29 May 2019 17:40:51 +0200 Subject: [PATCH] fix: add flag to retrieve permissions before go to next screen --- .../exodusprivacy/adapters/ApplicationListAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java index 95f287c..38faef3 100644 --- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java +++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/adapters/ApplicationListAdapter.java @@ -167,7 +167,7 @@ public class ApplicationListAdapter extends RecyclerView.Adapter { @Override public void onClick(View v) { try { - PackageInfo packageInfo = packageManager.getPackageInfo(holder.viewModel.packageName, 0); + PackageInfo packageInfo = packageManager.getPackageInfo(holder.viewModel.packageName, PackageManager.GET_PERMISSIONS); onAppClickListener.onAppClick(packageInfo); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace();