修复黑色模式下的闪退问题
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -4,14 +4,14 @@
|
||||
"type": "APK",
|
||||
"kind": "Directory"
|
||||
},
|
||||
"applicationId": "com.lsp.view",
|
||||
"variantName": "processReleaseResources",
|
||||
"applicationId": "com.lsper.view",
|
||||
"variantName": "release",
|
||||
"elements": [
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"versionCode": 102,
|
||||
"versionName": "1.0.2",
|
||||
"versionCode": 110,
|
||||
"versionName": "1.1.0",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.LspView">
|
||||
<activity android:name=".PicActivity"></activity>
|
||||
<activity android:name=".PicActivity"
|
||||
android:configChanges="uiMode"
|
||||
></activity>
|
||||
<activity android:name=".MainActivity">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
@@ -150,9 +150,7 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
if (list != null&&list.size>1) {
|
||||
for ((i, post) in list.withIndex()) {
|
||||
if (post.rating=="s"){
|
||||
postList.add(post)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
swipeRefreshLayout.isRefreshing = false
|
||||
|
||||
@@ -4,12 +4,14 @@ import android.animation.Animator
|
||||
import android.animation.AnimatorListenerAdapter
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
import android.content.res.Configuration
|
||||
import android.graphics.drawable.Drawable
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import android.os.Bundle
|
||||
import android.os.Environment
|
||||
import android.os.Looper
|
||||
import android.util.Log
|
||||
import android.util.TypedValue
|
||||
import android.view.View
|
||||
import android.widget.ImageView
|
||||
import android.widget.ProgressBar
|
||||
@@ -62,6 +64,9 @@ class PicActivity : AppCompatActivity() {
|
||||
loadTags<Tags>(tags)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
val author = intent.getStringExtra("author")
|
||||
if (author!=null){
|
||||
loadTags<Author>(author)
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/appbar">
|
||||
<com.google.android.material.appbar.CollapsingToolbarLayout
|
||||
android:id="@+id/ctl"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:fitsSystemWindows="true"
|
||||
app:contentScrim="@color/primary"
|
||||
app:layout_scrollFlags="scroll|exitUntilCollapsed"
|
||||
>
|
||||
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.LspView" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<style name="Theme.LspView" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_200</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorPrimary">@color/dark_main</item>
|
||||
<item name="colorPrimaryVariant">@color/dark_primary</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_200</item>
|
||||
<item name="colorSecondary">@color/primary</item>
|
||||
<item name="colorSecondaryVariant">@color/primary</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorAccent">@color/dark_primary</item>
|
||||
|
||||
</style>
|
||||
</resources>
|
||||
@@ -3,6 +3,8 @@
|
||||
<color name="Dark">#1976D2</color>
|
||||
<color name="primary">#2196F3</color>
|
||||
<color name="accent">#03A9F4</color>
|
||||
<color name="dark_main">#3F51B5</color>
|
||||
<color name="dark_primary">#303F9F</color>
|
||||
<color name="purple_200">#FFBB86FC</color>
|
||||
<color name="purple_500">#FF6200EE</color>
|
||||
<color name="purple_700">#FF3700B3</color>
|
||||
|
||||
Reference in New Issue
Block a user