fix: add flag to retrieve permissions before go to next screen

This commit is contained in:
Benjamin Orsini 2019-05-29 17:40:51 +02:00
parent c0ee8bc183
commit e483ff64cb
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ public class ApplicationListAdapter extends RecyclerView.Adapter {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
try { try {
PackageInfo packageInfo = packageManager.getPackageInfo(holder.viewModel.packageName, 0); PackageInfo packageInfo = packageManager.getPackageInfo(holder.viewModel.packageName, PackageManager.GET_PERMISSIONS);
onAppClickListener.onAppClick(packageInfo); onAppClickListener.onAppClick(packageInfo);
} catch (PackageManager.NameNotFoundException e) { } catch (PackageManager.NameNotFoundException e) {
e.printStackTrace(); e.printStackTrace();