File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/main/java/cn/coderpig/cp_network_capture/ui/activity Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ android {
10
10
minSdk 21
11
11
targetSdk 33
12
12
versionCode 1
13
- versionName " 0.0.12 "
13
+ versionName " 0.0.13 "
14
14
}
15
15
16
16
buildTypes {
Original file line number Diff line number Diff line change @@ -42,12 +42,16 @@ class TextSearchActivity : AppCompatActivity() {
42
42
searchMatchText()
43
43
}
44
44
tvNextMatch -> {
45
- if (mCurMatchPos >= mMatchRangeList.size - 1 ) mCurMatchPos = 0 else mCurMatchPos++
46
- scrollToTargetLine()
45
+ if (! mMatchRangeList.isNullOrEmpty()) {
46
+ if (mCurMatchPos >= mMatchRangeList.size - 1 ) mCurMatchPos = 0 else mCurMatchPos++
47
+ scrollToTargetLine()
48
+ }
47
49
}
48
50
tvPreviousMatch -> {
49
- if (mCurMatchPos <= 0 ) mCurMatchPos = mMatchRangeList.size - 1 else mCurMatchPos--
50
- scrollToTargetLine()
51
+ if (! mMatchRangeList.isNullOrEmpty()) {
52
+ if (mCurMatchPos <= 0 ) mCurMatchPos = mMatchRangeList.size - 1 else mCurMatchPos--
53
+ scrollToTargetLine()
54
+ }
51
55
}
52
56
}
53
57
}
You can’t perform that action at this time.
0 commit comments