diff --git a/.idea/markdown-navigator-enh.xml b/.idea/markdown-navigator-enh.xml
new file mode 100644
index 0000000..a8fcc84
--- /dev/null
+++ b/.idea/markdown-navigator-enh.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/markdown-navigator.xml b/.idea/markdown-navigator.xml
new file mode 100644
index 0000000..a2fc086
--- /dev/null
+++ b/.idea/markdown-navigator.xml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 31b8306..dfdd57d 100644
--- a/README.md
+++ b/README.md
@@ -4,4 +4,8 @@
cd LspView
.\gradlew app:assembleDebug
+# 感谢
+ [PhotoView](https://github.com/Baseflow/PhotoView)
+ [Bumptech](https://github.com/bumptech)
+
diff --git a/app/build.gradle b/app/build.gradle
index ca5cd97..f0d391a 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -8,11 +8,11 @@ android {
buildToolsVersion "30.0.2"
defaultConfig {
- applicationId "com.lsp.view"
+ applicationId "com.lsper.view"
minSdkVersion 25
targetSdkVersion 30
- versionCode 102
- versionName "1.0.2"
+ versionCode 110
+ versionName "1.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
@@ -34,13 +34,11 @@ android {
dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.3.0'
- implementation 'com.lcodecorex:tkrefreshlayout:1.0.7'
api 'com.google.android:flexbox:1.0.0'
implementation ('androidx.swiperefreshlayout:swiperefreshlayout:1.1.0')
implementation ('com.google.android.material:material:1.3.0')
implementation ('com.squareup.retrofit2:retrofit:2.9.0')
implementation ('com.squareup.retrofit2:converter-gson:2.9.0')
- implementation 'com.github.ybq:Android-SpinKit:1.4.0'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
diff --git a/app/src/main/java/com/lsp/view/MainActivity.kt b/app/src/main/java/com/lsp/view/MainActivity.kt
index f41fad0..47338a9 100644
--- a/app/src/main/java/com/lsp/view/MainActivity.kt
+++ b/app/src/main/java/com/lsp/view/MainActivity.kt
@@ -150,7 +150,9 @@ class MainActivity : AppCompatActivity() {
if (list != null&&list.size>1) {
for ((i, post) in list.withIndex()) {
- postList.add(post)
+ if (post.rating=="s"){
+ postList.add(post)
+ }
}
} else {
swipeRefreshLayout.isRefreshing = false
diff --git a/app/src/main/java/com/lsp/view/PicActivity.kt b/app/src/main/java/com/lsp/view/PicActivity.kt
index 57e8c84..3eb9594 100644
--- a/app/src/main/java/com/lsp/view/PicActivity.kt
+++ b/app/src/main/java/com/lsp/view/PicActivity.kt
@@ -71,7 +71,6 @@ class PicActivity : AppCompatActivity() {
loadTags(file_size)
}
-
val sharedPreferences = getSharedPreferences("FirstRun",0)
val firstRun = sharedPreferences.getBoolean("FirstRun",true)
if (firstRun){
@@ -91,7 +90,6 @@ class PicActivity : AppCompatActivity() {
}
-
val file_url = intent.getStringExtra("file_url")
val file_ext = intent.getStringExtra("file_ext")
val fbtn = findViewById(R.id.fbtn)
@@ -144,11 +142,6 @@ class PicActivity : AppCompatActivity() {
}
}
}
-
-
-
-
-
}
override fun onBackPressed() {
@@ -234,7 +227,6 @@ class PicActivity : AppCompatActivity() {
fos.close()
}
-
}
}
else{
@@ -242,7 +234,6 @@ class PicActivity : AppCompatActivity() {
savePic(file_url,end)
}
-
}
private fun loadPic(url:String){
@@ -291,10 +282,8 @@ class PicActivity : AppCompatActivity() {
return manager
}
-
private inline fun loadTags(tags:String){
-
when(T::class.java){
Tags::class.java ->{
tagList.add(Tags("Tag"))
@@ -341,14 +330,6 @@ class PicActivity : AppCompatActivity() {
}
}
-
-
-
-
-
-
}
-
-
}
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 38b34a5..4ba0e96 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,3 +1,3 @@
- LspView
+ YandView
\ No newline at end of file