mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-25 18:19:26 +03:00
Merge pull request #2637 from vector-im/feature/bma/investigation
Fix switch theme issue
This commit is contained in:
commit
1103d7c112
11 changed files with 28 additions and 41 deletions
|
@ -19,6 +19,7 @@ Bugfix 🐛:
|
||||||
- Tapping drawer having more than 1 room in notifications gives "malformed link" error (#2605)
|
- Tapping drawer having more than 1 room in notifications gives "malformed link" error (#2605)
|
||||||
- Sent image not displayed when opened immediately after sending (#409)
|
- Sent image not displayed when opened immediately after sending (#409)
|
||||||
- Initial sync is not retried correctly when there is some network error. (#2632)
|
- Initial sync is not retried correctly when there is some network error. (#2632)
|
||||||
|
- Fix switch theme issue, and white field issue (#2599, #2528)
|
||||||
- Fix request too large Uri error when joining a room
|
- Fix request too large Uri error when joining a room
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
|
|
|
@ -38,19 +38,16 @@ class CoroutineSequencersTest: MatrixTest {
|
||||||
|
|
||||||
val jobs = listOf(
|
val jobs = listOf(
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer.post { suspendingMethod("#1") }.also {
|
sequencer.post { suspendingMethod("#1") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
},
|
},
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer.post { suspendingMethod("#2") }.also {
|
sequencer.post { suspendingMethod("#2") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
},
|
},
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer.post { suspendingMethod("#3") }.also {
|
sequencer.post { suspendingMethod("#3") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
runBlocking {
|
runBlocking {
|
||||||
|
@ -70,19 +67,16 @@ class CoroutineSequencersTest: MatrixTest {
|
||||||
val results = ArrayList<String>()
|
val results = ArrayList<String>()
|
||||||
val jobs = listOf(
|
val jobs = listOf(
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer1.post { suspendingMethod("#1") }.also {
|
sequencer1.post { suspendingMethod("#1") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
},
|
},
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer2.post { suspendingMethod("#2") }.also {
|
sequencer2.post { suspendingMethod("#2") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
},
|
},
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer3.post { suspendingMethod("#3") }.also {
|
sequencer3.post { suspendingMethod("#3") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
runBlocking {
|
runBlocking {
|
||||||
|
@ -97,20 +91,17 @@ class CoroutineSequencersTest: MatrixTest {
|
||||||
val results = ArrayList<String>()
|
val results = ArrayList<String>()
|
||||||
val jobs = listOf(
|
val jobs = listOf(
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer.post { suspendingMethod("#1") }.also {
|
sequencer.post { suspendingMethod("#1") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
},
|
},
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
val result = sequencer.post { suspendingMethod("#2") }.also {
|
sequencer.post { suspendingMethod("#2") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
.also { println("Result: $it") }
|
||||||
println("Result: $result")
|
|
||||||
},
|
},
|
||||||
GlobalScope.launch(dispatcher) {
|
GlobalScope.launch(dispatcher) {
|
||||||
sequencer.post { suspendingMethod("#3") }.also {
|
sequencer.post { suspendingMethod("#3") }
|
||||||
results.add(it)
|
.also { results.add(it) }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
// We are canceling the second job
|
// We are canceling the second job
|
||||||
|
|
|
@ -82,8 +82,7 @@
|
||||||
</activity-alias>
|
</activity-alias>
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".features.home.HomeActivity"
|
android:name=".features.home.HomeActivity" />
|
||||||
android:launchMode="singleTask" />
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".features.login.LoginActivity"
|
android:name=".features.login.LoginActivity"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
|
|
|
@ -79,8 +79,6 @@ class MainActivity : VectorBaseActivity<FragmentLoadingBinding>(), UnlockedActiv
|
||||||
|
|
||||||
intent.putExtra(EXTRA_ARGS, args)
|
intent.putExtra(EXTRA_ARGS, args)
|
||||||
activity.startActivity(intent)
|
activity.startActivity(intent)
|
||||||
// Ensure all the Activities are destroyed, it seems that the intent flags are not enough now.
|
|
||||||
activity.finishAffinity()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,8 @@ class VerificationChooseMethodViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
session.cryptoService().verificationService().removeListener(this)
|
session.cryptoService().verificationService().removeListener(this)
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object : MvRxViewModelFactory<VerificationChooseMethodViewModel, VerificationChooseMethodViewState> {
|
companion object : MvRxViewModelFactory<VerificationChooseMethodViewModel, VerificationChooseMethodViewState> {
|
||||||
|
|
|
@ -93,8 +93,8 @@ class DiscoverySettingsViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
stopListenToIdentityManager()
|
stopListenToIdentityManager()
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun handle(action: DiscoverySettingsAction) {
|
override fun handle(action: DiscoverySettingsAction) {
|
||||||
|
|
|
@ -810,9 +810,8 @@ class LoginViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
|
|
||||||
currentTask?.cancel()
|
currentTask?.cancel()
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getInitialHomeServerUrl(): String? {
|
fun getInitialHomeServerUrl(): String? {
|
||||||
|
|
|
@ -221,7 +221,7 @@ class RoomDirectoryViewModel @AssistedInject constructor(@Assisted initialState:
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
currentTask?.cancel()
|
currentTask?.cancel()
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,8 +232,7 @@ class SoftLogoutViewModel @AssistedInject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
|
|
||||||
currentTask?.cancel()
|
currentTask?.cancel()
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,8 +157,8 @@ class ServerBackupStatusViewModel @AssistedInject constructor(@Assisted initialS
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
session.cryptoService().keysBackupService().removeListener(this)
|
session.cryptoService().keysBackupService().removeListener(this)
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStateChange(newState: KeysBackupState) {
|
override fun onStateChange(newState: KeysBackupState) {
|
||||||
|
|
|
@ -107,8 +107,8 @@ class SignoutCheckViewModel @AssistedInject constructor(@Assisted initialState:
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCleared() {
|
override fun onCleared() {
|
||||||
super.onCleared()
|
|
||||||
session.cryptoService().keysBackupService().removeListener(this)
|
session.cryptoService().keysBackupService().removeListener(this)
|
||||||
|
super.onCleared()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onStateChange(newState: KeysBackupState) {
|
override fun onStateChange(newState: KeysBackupState) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue