From 4947bc1be5ae386f62e9d5018c54fd763c9805c5 Mon Sep 17 00:00:00 2001 From: Sergei Kozelko Date: Sun, 25 Sep 2022 15:15:38 +0700 Subject: Fix crash in debug build by using fully qualified class name for layoutmanager (#1130) When the class name is relative, Android tries to resolve it against applicationId. However it does not match the package because of `.debug` suffix so it tries to load the wrong class. This results in ClassNotFoundException and a crash. Using fully qualified class name fixes it as the system can use the class name as is. --- app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/res/layout-sw600dp') diff --git a/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml b/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml index dd688bfc..61f27727 100644 --- a/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml +++ b/app/src/main/res/layout-sw600dp/fragment_view_post_detail.xml @@ -25,7 +25,7 @@ android:layout_weight="1" android:paddingBottom="144dp" android:clipToPadding="false" - app:layoutManager=".customviews.LinearLayoutManagerBugFixed" /> + app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed" /> + app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed" /> -- cgit v1.2.3