clean code

This commit is contained in:
S1m 2021-06-02 13:01:14 +02:00
parent 1e8d8b24fd
commit b32fab390e
5 changed files with 2 additions and 8 deletions

View File

@ -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"

View File

@ -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
/**

View File

@ -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(

View File

@ -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

View File

@ -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 {