From 4c86c275f85e63410a40bb85c753300d9d017a50 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Wed, 12 Jun 2024 21:25:19 +0200 Subject: [PATCH] Fix missing permission request buttons --- .../activities/welcome/WelcomeFragmentPermissions.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/welcome/WelcomeFragmentPermissions.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/welcome/WelcomeFragmentPermissions.java index b5431083f..af3c9f145 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/welcome/WelcomeFragmentPermissions.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/welcome/WelcomeFragmentPermissions.java @@ -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()); });