1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-30 05:52:57 +01:00

Fix missing permission request buttons

This commit is contained in:
Arjan Schrijver 2024-06-12 21:25:19 +02:00
parent edf94625b8
commit 06b14248d0

View File

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