Disable Code Highliging in File View to avoid crashes on Android 5 and 6 (#476)

Quick fix for crashes on Android 5 and 6 in file viewer using highlightjs

Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/476
Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
M M Arif
2020-04-28 22:56:31 +00:00
committed by 6543
parent 0bc4b6fd10
commit 7c90a32de7
3 changed files with 69 additions and 34 deletions

View File

@ -89,13 +89,13 @@
</LinearLayout>
<com.pddstudio.highlightjs.HighlightJsView
android:id="@+id/singleCodeContents"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:layout_height="match_parent"
android:id="@+id/highlightJs"
android:layout_marginTop="42dp"
android:visibility="gone" />
android:visibility="gone"
android:orientation="vertical" />
<com.github.chrisbanes.photoview.PhotoView
android:id="@+id/imageView"

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<com.pddstudio.highlightjs.HighlightJsView
android:id="@+id/singleCodeContents"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="14sp"
android:layout_marginTop="42dp"
android:visibility="gone"
xmlns:android="http://schemas.android.com/apk/res/android" />