- Update account spinner when main activity is resumed without action.
This commit is contained in:
+2
-2
@@ -8,8 +8,8 @@ android {
|
|||||||
applicationId = 'com.tutpro.baresip'
|
applicationId = 'com.tutpro.baresip'
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 28
|
targetSdkVersion 28
|
||||||
versionCode = 56
|
versionCode = 57
|
||||||
versionName = '7.1.0'
|
versionName = '7.1.1'
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
cFlags '-DHAVE_INTTYPES_H'
|
cFlags '-DHAVE_INTTYPES_H'
|
||||||
|
|||||||
@@ -160,7 +160,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
Log.d("Baresip", "Nothing selected")
|
Log.d("Baresip", "Nothing selected")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
aorSpinner.setOnTouchListener { view, event ->
|
aorSpinner.setOnTouchListener { view, event ->
|
||||||
if (event.action == MotionEvent.ACTION_DOWN) {
|
if (event.action == MotionEvent.ACTION_DOWN) {
|
||||||
if (aorSpinner.selectedItemPosition == -1) {
|
if (aorSpinner.selectedItemPosition == -1) {
|
||||||
@@ -534,6 +533,7 @@ class MainActivity : AppCompatActivity() {
|
|||||||
if (UserAgent.uas().size > 0) {
|
if (UserAgent.uas().size > 0) {
|
||||||
if (aorSpinner.selectedItemPosition == -1)
|
if (aorSpinner.selectedItemPosition == -1)
|
||||||
aorSpinner.setSelection(0)
|
aorSpinner.setSelection(0)
|
||||||
|
uaAdapter.notifyDataSetChanged()
|
||||||
showCall(UserAgent.uas()[aorSpinner.selectedItemPosition])
|
showCall(UserAgent.uas()[aorSpinner.selectedItemPosition])
|
||||||
updateIcons(UserAgent.uas()[aorSpinner.selectedItemPosition].account)
|
updateIcons(UserAgent.uas()[aorSpinner.selectedItemPosition].account)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user