Skip to content

Commit

Permalink
fix a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
lizongying committed Oct 28, 2024
1 parent 61a154c commit a0be04f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## 更新日誌

### v1.3.7.20

* 解決一個可能引起閃退的問題

### v1.3.7.20-kitkat

* 解決EPG和proxy無法置空的問題
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/com/lizongying/mytv0/SettingFragment.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.lizongying.mytv0

import MainViewModel
import MainViewModel.Companion.FILE_NAME
import android.Manifest
import android.content.pm.PackageManager
import android.graphics.drawable.ColorDrawable
Expand Down Expand Up @@ -372,7 +371,7 @@ class SettingFragment : Fragment() {

override fun onHiddenChanged(hidden: Boolean) {
super.onHiddenChanged(hidden)
if (!hidden) {
if (_binding != null && !hidden) {
binding.qrcode.requestFocus()
}
}
Expand Down
5 changes: 0 additions & 5 deletions app/src/main/java/com/lizongying/mytv0/models/TVGroupModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,6 @@ class TVGroupModel : ViewModel() {
// get & set
// keep: In the current list loop
fun getPrev(keep: Boolean = false): TVModel? {

Log.i(TAG, "keep $keep")

// No item
if (tvGroupValue.size < 2 || tvGroupValue[1].size() == 0) {
return null
Expand Down Expand Up @@ -206,8 +203,6 @@ class TVGroupModel : ViewModel() {

// get & set
fun getNext(keep: Boolean = false): TVModel? {
Log.i(TAG, "keep $keep")

// No item
if (tvGroupValue.size < 2 || tvGroupValue[1].size() == 0) {
return null
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version_code": 16975635, "version_name": "v1.3.7.19"}
{"version_code": 16975636, "version_name": "v1.3.7.20"}

0 comments on commit a0be04f

Please sign in to comment.