mirror of
https://codeberg.org/Bazsalanszky/Infinity-For-Lemmy.git
synced 2025-10-05 21:39:50 +02:00
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.
This commit is contained in:
@@ -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" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/comments_recycler_view_view_post_detail_fragment"
|
||||
@@ -34,7 +34,7 @@
|
||||
android:layout_weight="1"
|
||||
android:paddingBottom="144dp"
|
||||
android:clipToPadding="false"
|
||||
app:layoutManager=".customviews.LinearLayoutManagerBugFixed" />
|
||||
app:layoutManager="ml.docilealligator.infinityforreddit.customviews.LinearLayoutManagerBugFixed" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
Reference in New Issue
Block a user