code quality

This commit is contained in:
Benoit Marty 2019-06-28 10:23:27 +02:00
parent 10353c9871
commit 7187cc23a1
7 changed files with 13 additions and 10 deletions

View file

@ -18,12 +18,12 @@ package im.vector.riotredesign.core.di;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Scope;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Scope
@Documented
@Retention(RUNTIME)
public @interface ScreenScope {}
@Retention(RetentionPolicy.RUNTIME)
public @interface ScreenScope {
}

View file

@ -103,7 +103,7 @@ class MessageMenuViewModel @AssistedInject constructor(@Assisted initialState: M
// SimpleAction(ACTION_DELETE, R.string.delete, R.drawable.ic_delete, event.root.eventId)
)
} else {
ArrayList<SimpleAction>().apply {
arrayListOf<SimpleAction>().apply {
if (event.sendState == SendState.SENDING) {
//TODO add cancel?

View file

@ -24,7 +24,8 @@ import im.vector.riotredesign.features.notifications.NotificationAction
import javax.inject.Inject
class TestBingRulesSettings @Inject constructor(private val activeSessionHolder: ActiveSessionHolder,
private val stringProvider: StringProvider) : TroubleshootTest(R.string.settings_troubleshoot_test_bing_settings_title) {
private val stringProvider: StringProvider)
: TroubleshootTest(R.string.settings_troubleshoot_test_bing_settings_title) {
private val testedRules =
listOf(RuleIds.RULE_ID_CONTAIN_DISPLAY_NAME,

View file

@ -25,7 +25,8 @@ import javax.inject.Inject
* Checks if notifications are enable in the system settings for this app.
*/
class TestDeviceSettings @Inject constructor(private val context: AppCompatActivity,
private val stringProvider: StringProvider) : TroubleshootTest(R.string.settings_troubleshoot_test_device_settings_title) {
private val stringProvider: StringProvider)
: TroubleshootTest(R.string.settings_troubleshoot_test_device_settings_title) {
override fun perform() {

View file

@ -26,7 +26,8 @@ import javax.inject.Inject
* Checks if notifications are enable in the system settings for this app.
*/
class TestSystemSettings @Inject constructor(private val context: AppCompatActivity,
private val stringProvider: StringProvider) : TroubleshootTest(R.string.settings_troubleshoot_test_system_settings_title) {
private val stringProvider: StringProvider)
: TroubleshootTest(R.string.settings_troubleshoot_test_system_settings_title) {
override fun perform() {
if (NotificationManagerCompat.from(context).areNotificationsEnabled()) {