mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-18 09:09:42 +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