From a53c8c715a837d49d19c28eca515890036a6e802 Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Thu, 22 Jun 2023 21:29:43 +0200 Subject: [PATCH] Fix bug, Buttons (WIP) --- .../cringe_authenticator/fragment/DynamicFragment.java | 2 ++ app/src/main/res/layout/menu_item.xml | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/DynamicFragment.java b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/DynamicFragment.java index 284e1b1..c448680 100644 --- a/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/DynamicFragment.java +++ b/app/src/main/java/com/cringe_studios/cringe_authenticator/fragment/DynamicFragment.java @@ -4,6 +4,7 @@ import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.os.Handler; +import android.os.Looper; import android.util.Log; import android.view.LayoutInflater; import android.view.View; @@ -57,6 +58,7 @@ public class DynamicFragment extends Fragment { FabUtil.showFabs(getActivity()); + handler = new Handler(Looper.getMainLooper()); refreshCodes = () -> { for(int i = 0; i < binding.itemList.getChildCount(); i++) { View v = binding.itemList.getChildAt(i); diff --git a/app/src/main/res/layout/menu_item.xml b/app/src/main/res/layout/menu_item.xml index 5702cb1..920fad1 100644 --- a/app/src/main/res/layout/menu_item.xml +++ b/app/src/main/res/layout/menu_item.xml @@ -8,5 +8,6 @@ android:id="@+id/button" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="Button"/> + android:text="Button" + android:background="@drawable/button_theme_red_blue"/> \ No newline at end of file