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