mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 22:03:55 +01:00
Fix failing tests for updateDepictsProperty method (#5795)
* tests: fix failing testUpdateDepictsProperty * replace deprecated circular progress bar with material progress bar * refactor: update SettingsActivity to not use custom appCompatDeletegate It is required because that delegate is automatically handled in new libraries.
This commit is contained in:
parent
ec4a6bc0c4
commit
190135d36c
8 changed files with 107 additions and 84 deletions
|
|
@ -47,9 +47,9 @@ class WikiBaseClient @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
fun postDeleteClaims(entityId: String, data: String): Observable<Boolean> {
|
||||
fun postDeleteClaims(entityId: String, data: String?): Observable<Boolean> {
|
||||
return csrfToken().switchMap { editToken ->
|
||||
wikiBaseInterface.postDeleteClaims(editToken, entityId, data)
|
||||
wikiBaseInterface.postDeleteClaims(editToken, entityId, data!!)
|
||||
.map { response: MwPostResponse -> response.successVal == 1 }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue