mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-28 12:07:52 +02:00
Fix lock preference observing on wrong thread.
This commit is contained in:
@ -50,8 +50,8 @@ class LockPreference @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
.show()
|
||||
Observable.fromCallable {
|
||||
savePassword(c.toString())
|
||||
}.observeOn(Schedulers.computation())
|
||||
.subscribeOn(AndroidSchedulers.mainThread())
|
||||
}.subscribeOn(Schedulers.computation())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe {
|
||||
progressDialog.dismiss()
|
||||
updateSummary()
|
||||
|
Reference in New Issue
Block a user