|
|
@@ -1,7 +1,10 @@
|
|
|
package com.izouma.booster.adapter;
|
|
|
|
|
|
+import android.content.Intent;
|
|
|
import android.content.pm.PackageManager;
|
|
|
import android.graphics.drawable.Drawable;
|
|
|
+import android.net.Uri;
|
|
|
+import android.provider.Settings;
|
|
|
import android.view.LayoutInflater;
|
|
|
import android.view.ViewGroup;
|
|
|
|
|
|
@@ -38,6 +41,12 @@ public class SensitivePermissionAdapter extends RecyclerView.Adapter<SensitivePe
|
|
|
} catch (PackageManager.NameNotFoundException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+ holder.binding.getRoot().setOnClickListener(v -> {
|
|
|
+ Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
|
|
|
+ Uri uri = Uri.fromParts("package", app.getPackageName(), null);
|
|
|
+ intent.setData(uri);
|
|
|
+ holder.binding.getRoot().getContext().startActivity(intent);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
@Override
|