v1.0.6 - 캐시 전체삭제, 로딩 스피너 수정

This commit is contained in:
tvmon-dev
2026-04-16 20:55:17 +09:00
parent d419b1a845
commit 08406166a6
5 changed files with 16 additions and 9 deletions

View File

@@ -13,8 +13,8 @@ android {
applicationId "com.example.tvmon" applicationId "com.example.tvmon"
minSdk 28 minSdk 28
targetSdk 34 targetSdk 34
versionCode 6 versionCode 7
versionName "1.0.5" versionName "1.0.6"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
} }

View File

@@ -179,7 +179,7 @@ class PlaybackActivity : AppCompatActivity() {
// [FIX 5] injectFullscreenScript는 한 번만, hideLoading은 명시적 Runnable로 관리 // [FIX 5] injectFullscreenScript는 한 번만, hideLoading은 명시적 Runnable로 관리
handler.postDelayed({ injectFullscreenScript() }, 300) handler.postDelayed({ injectFullscreenScript() }, 300)
handler.removeCallbacks(hideLoadingRunnable) handler.removeCallbacks(hideLoadingRunnable)
handler.postDelayed(hideLoadingRunnable, 1500) handler.postDelayed(hideLoadingRunnable, 2000)
} }
} }

View File

@@ -14,10 +14,14 @@ import com.example.tvmon.util.UpdateChecker
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject import org.koin.android.ext.android.inject
import com.example.tvmon.data.repository.CategoryCacheRepository import com.example.tvmon.data.repository.CategoryCacheRepository
import com.example.tvmon.data.repository.BookmarkRepository
import com.example.tvmon.data.repository.WatchHistoryRepository
class SettingsActivity : AppCompatActivity() { class SettingsActivity : AppCompatActivity() {
private val categoryCacheRepository: CategoryCacheRepository by inject() private val categoryCacheRepository: CategoryCacheRepository by inject()
private val bookmarkRepository: BookmarkRepository by inject()
private val watchHistoryRepository: WatchHistoryRepository by inject()
private lateinit var tvAppVersion: TextView private lateinit var tvAppVersion: TextView
private lateinit var tvLatestVersion: TextView private lateinit var tvLatestVersion: TextView
@@ -99,7 +103,7 @@ class SettingsActivity : AppCompatActivity() {
private fun showClearCacheDialog() { private fun showClearCacheDialog() {
AlertDialog.Builder(this) AlertDialog.Builder(this)
.setTitle("캐시 삭제") .setTitle("캐시 삭제")
.setMessage("모든 캐시 데이터를 삭제하시겠습니까?\n\n삭제 항목:\n- 영화/에피소드 정보\n- 이미지 캐시") .setMessage("모든 캐시 데이터를 삭제하시겠습니까?\n\n삭제 항목:\n- 영화/에피소드 정보\n- 북마크/시청기록\n- 이미지 캐시")
.setPositiveButton("삭제") { _, _ -> .setPositiveButton("삭제") { _, _ ->
clearAllCache() clearAllCache()
} }
@@ -111,11 +115,13 @@ class SettingsActivity : AppCompatActivity() {
lifecycleScope.launch { lifecycleScope.launch {
try { try {
categoryCacheRepository.clearCache() categoryCacheRepository.clearCache()
bookmarkRepository.clearAllBookmarks()
watchHistoryRepository.clearAllHistory()
com.bumptech.glide.Glide.get(this@SettingsActivity).clearMemory() com.bumptech.glide.Glide.get(this@SettingsActivity).clearMemory()
com.bumptech.glide.Glide.get(this@SettingsActivity).clearDiskCache() com.bumptech.glide.Glide.get(this@SettingsActivity).clearDiskCache()
Toast.makeText(this@SettingsActivity, "캐시가 삭제되었습니다", Toast.LENGTH_SHORT).show() Toast.makeText(this@SettingsActivity, "모든 캐시가 삭제되었습니다", Toast.LENGTH_SHORT).show()
} catch (e: Exception) { } catch (e: Exception) {
Toast.makeText(this@SettingsActivity, "캐시 삭제 실패: ${e.message}", Toast.LENGTH_SHORT).show() Toast.makeText(this@SettingsActivity, "캐시 삭제 실패: ${e.message}", Toast.LENGTH_SHORT).show()
} }

View File

@@ -17,7 +17,7 @@ data class VersionInfo(
object UpdateChecker { object UpdateChecker {
private const val TAG = "UpdateChecker" private const val TAG = "UpdateChecker"
private const val VERSION_JSON_URL = "https://git.webpluss.net/sanjeok77/tvmon_release/releases/download/version/version.json" private const val VERSION_JSON_URL = "https://git.webpluss.net/sanjeok77/tvmon_release/raw/branch/main/version.json"
private const val APK_BASE_URL = "https://git.webpluss.net/sanjeok77/tvmon_release/releases/download" private const val APK_BASE_URL = "https://git.webpluss.net/sanjeok77/tvmon_release/releases/download"
fun getCurrentVersionCode(context: Context): Int { fun getCurrentVersionCode(context: Context): Int {

View File

@@ -20,11 +20,12 @@
<ProgressBar <ProgressBar
android:id="@+id/progress_bar" android:id="@+id/progress_bar"
android:layout_width="80dp" android:layout_width="60dp"
android:layout_height="80dp" android:layout_height="60dp"
android:layout_gravity="center" android:layout_gravity="center"
android:indeterminate="true" android:indeterminate="true"
android:indeterminateTint="#FFFFFF" /> android:indeterminateTint="@color/netflix_red"
style="?android:attr/progressBarStyleLarge" />
</FrameLayout> </FrameLayout>