fix: add flag to retrieve permissions before go to next screen
This commit is contained in:
parent
c0ee8bc183
commit
e483ff64cb
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue