mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-12-29 20:38:37 +03:00
clean code
This commit is contained in:
parent
1e8d8b24fd
commit
b32fab390e
5 changed files with 2 additions and 8 deletions
|
@ -357,10 +357,6 @@
|
|||
android:name=".features.settings.troubleshoot.TestNotificationReceiver"
|
||||
android:exported="false" />
|
||||
|
||||
<receiver
|
||||
android:name=".features.settings.troubleshoot.TestNewEndpoint"
|
||||
android:exported="false" />
|
||||
|
||||
<!-- Exported false, should only be accessible from this app!! -->
|
||||
<receiver
|
||||
android:name=".features.notifications.NotificationBroadcastReceiver"
|
||||
|
|
|
@ -20,7 +20,6 @@ import androidx.activity.result.ActivityResultLauncher
|
|||
import im.vector.app.R
|
||||
import im.vector.app.core.resources.StringProvider
|
||||
import im.vector.app.features.settings.VectorPreferences
|
||||
import im.vector.app.features.settings.troubleshoot.TroubleshootTest
|
||||
import javax.inject.Inject
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,6 @@ import im.vector.app.R
|
|||
import im.vector.app.core.resources.StringProvider
|
||||
import im.vector.app.core.utils.isIgnoringBatteryOptimizations
|
||||
import im.vector.app.core.utils.requestDisablingBatteryOptimization
|
||||
import im.vector.app.features.settings.troubleshoot.TroubleshootTest
|
||||
import javax.inject.Inject
|
||||
|
||||
class TestBatteryOptimization @Inject constructor(
|
||||
|
|
|
@ -27,7 +27,8 @@ import javax.inject.Inject
|
|||
* Test that app can successfully retrieve a new endpoint
|
||||
*/
|
||||
class TestNewEndpoint @Inject constructor(private val context: AppCompatActivity,
|
||||
private val stringProvider: StringProvider) : TroubleshootTest(R.string.settings_troubleshoot_test_endpoint_title) {
|
||||
private val stringProvider: StringProvider
|
||||
) : TroubleshootTest(R.string.settings_troubleshoot_test_endpoint_title) {
|
||||
|
||||
override fun perform(activityResultLauncher: ActivityResultLauncher<Intent>) {
|
||||
status = TestStatus.RUNNING
|
||||
|
|
|
@ -45,7 +45,6 @@ class TestPushFromPushGateway @Inject constructor(private val context: AppCompat
|
|||
private var action: Job? = null
|
||||
private var pushReceived: Boolean = false
|
||||
|
||||
|
||||
override fun perform(activityResultLauncher: ActivityResultLauncher<Intent>) {
|
||||
pushReceived = false
|
||||
UPHelper.getUpEndpoint(context) ?: run {
|
||||
|
|
Loading…
Reference in a new issue