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:
@ -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"
|
||||
|
9
app/src/main/res/layout/custom_highlightjs.xml
Normal file
9
app/src/main/res/layout/custom_highlightjs.xml
Normal 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" />
|
Reference in New Issue
Block a user