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:
parent
edf94625b8
commit
06b14248d0
@ -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());
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user