Fix missing permission request buttons

This commit is contained in:
Arjan Schrijver 2024-06-12 21:25:19 +02:00
parent 13c8061507
commit 4c86c275f8

View File

@ -113,6 +113,9 @@ public class WelcomeFragmentPermissions extends Fragment {
holder.requestButton.setEnabled(false);
holder.checkmarkImageView.setVisibility(View.VISIBLE);
} else {
holder.requestButton.setVisibility(View.VISIBLE);
holder.requestButton.setEnabled(true);
holder.checkmarkImageView.setVisibility(View.GONE);
holder.requestButton.setOnClickListener(view -> {
PermissionsUtils.requestPermission(requireActivity(), permissionData.getPermission());
});