Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bannedbook committed May 7, 2020
1 parent 8b5ded5 commit 07f6b1f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ buildscript {
compileSdkVersion = 29
buildToolsVersion = '29.0.3'
desugarLibsVersion = '1.0.5'
versionCode = 425
versionName = '5.0.6.5R'
versionCode = 426
versionName = '5.0.6.6R'
resConfigs = ['ar', 'es', 'fa', 'fr', 'ja', 'ko', 'ru', 'tr', 'zh-rCN', 'zh-rTW']
}

Expand Down
2 changes: 1 addition & 1 deletion gitupdate.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ git pull origin master
git add -A
git commit -m "update"
git push origin master
git tag -a v5.0.6.5 -m "release v5.0.6.5"
git tag -a v5.0.6.6 -m "release v5.0.6.6"
git push origin --tags
pause
Original file line number Diff line number Diff line change
Expand Up @@ -713,10 +713,12 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
val old = DataStore.profileId
Core.switchProfile(profilesAdapter.profiles[k].id)
activity?.runOnUiThread() {
try {activity.window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)}catch (e:Exception){}
layoutManager.scrollToPositionWithOffset(k, 0)
layoutManager.stackFromEnd = true
//layoutManager.stackFromEnd = true
profilesAdapter.refreshId(old)
profilesAdapter.refreshId(profilesAdapter.profiles[k].id)
try {activity.window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)}catch (e:Exception){}
}

var result = tcping(profilesAdapter.profiles[k].host, profilesAdapter.profiles[k].remotePort)
Expand Down Expand Up @@ -764,6 +766,7 @@ class ProfilesFragment : ToolbarFragment(), Toolbar.OnMenuItemClickListener {
profilesAdapter.notifyDataSetChanged()
try{Core.alertMessage(activity.getString(R.string.toast_test_ended),activity)}catch (t:Throwable){}
}
try {activity.window.clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)}catch (e:Exception){}
}
}

Expand Down

0 comments on commit 07f6b1f

Please sign in to comment.