code quality
This commit is contained in:
parent
10353c9871
commit
7187cc23a1
|
@ -50,7 +50,7 @@ internal class RoomDecryptorProvider @Inject constructor(
|
|||
Timber.e("## getRoomDecryptor() : null algorithm")
|
||||
return null
|
||||
}
|
||||
if(roomId != null && roomId.isNotEmpty()) {
|
||||
if (roomId != null && roomId.isNotEmpty()) {
|
||||
synchronized(roomDecryptors) {
|
||||
if (!roomDecryptors.containsKey(roomId)) {
|
||||
roomDecryptors[roomId] = HashMap()
|
||||
|
|
|
@ -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 {
|
||||
}
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -46,7 +46,7 @@ class VectorInviteView @JvmOverloads constructor(context: Context, attrs: Attrib
|
|||
var callback: Callback? = null
|
||||
|
||||
init {
|
||||
if(context is HasScreenInjector){
|
||||
if (context is HasScreenInjector){
|
||||
context.injector().inject(this)
|
||||
}
|
||||
View.inflate(context, R.layout.vector_invite_view, this)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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() {
|
||||
|
||||
|
|
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue