From 18714b2b8bcfc667e4fe775cdbaddd7375689fd5 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 10 Feb 2021 15:07:13 +0100 Subject: [PATCH] resolve some lint warnings Signed-off-by: Marcel Hibbe --- .../talk/controllers/AccountVerificationController.java | 6 ++++++ drawable_resources/icon-background.svg | 3 ++- drawable_resources/icon-foreground.svg | 3 ++- drawable_resources/other/file-icon-black-24h.svg | 3 +-- drawable_resources/other/file-icon.svg | 3 +-- drawable_resources/other/file-password-request.svg | 3 +-- 6 files changed, 13 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.java b/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.java index 1c70ee675..9ad6f13a6 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/AccountVerificationController.java @@ -20,6 +20,7 @@ package com.nextcloud.talk.controllers; +import android.annotation.SuppressLint; import android.content.pm.ActivityInfo; import android.os.Bundle; import android.os.Handler; @@ -265,6 +266,7 @@ public class AccountVerificationController extends BaseController { disposables.add(d); } + @SuppressLint("SetTextI18n") @Override public void onNext(UserEntity userEntity) { internalAccountId = userEntity.getId(); @@ -278,6 +280,7 @@ public class AccountVerificationController extends BaseController { } } + @SuppressLint("SetTextI18n") @Override public void onError(Throwable e) { progressText.setText(progressText.getText().toString() + @@ -305,6 +308,7 @@ public class AccountVerificationController extends BaseController { disposables.add(d); } + @SuppressLint("SetTextI18n") @Override public void onNext(UserProfileOverall userProfileOverall) { String displayName = null; @@ -329,6 +333,7 @@ public class AccountVerificationController extends BaseController { } } + @SuppressLint("SetTextI18n") @Override public void onError(Throwable e) { if (getActivity() != null) { @@ -351,6 +356,7 @@ public class AccountVerificationController extends BaseController { WorkManager.getInstance().enqueue(pushRegistrationWork); } + @SuppressLint("SetTextI18n") @Subscribe(threadMode = ThreadMode.BACKGROUND) public void onMessageEvent(EventStatus eventStatus) { if (eventStatus.getEventType().equals(EventStatus.EventType.PUSH_REGISTRATION)) { diff --git a/drawable_resources/icon-background.svg b/drawable_resources/icon-background.svg index 3ed4da872..b2618fccd 100644 --- a/drawable_resources/icon-background.svg +++ b/drawable_resources/icon-background.svg @@ -1,6 +1,7 @@ - + diff --git a/drawable_resources/icon-foreground.svg b/drawable_resources/icon-foreground.svg index d02f3012f..9f006881c 100644 --- a/drawable_resources/icon-foreground.svg +++ b/drawable_resources/icon-foreground.svg @@ -1,5 +1,6 @@ - + diff --git a/drawable_resources/other/file-icon-black-24h.svg b/drawable_resources/other/file-icon-black-24h.svg index 7a5d215b7..7b35dc82d 100644 --- a/drawable_resources/other/file-icon-black-24h.svg +++ b/drawable_resources/other/file-icon-black-24h.svg @@ -1,5 +1,4 @@ - - + diff --git a/drawable_resources/other/file-icon.svg b/drawable_resources/other/file-icon.svg index 7593a16fe..53f26f865 100644 --- a/drawable_resources/other/file-icon.svg +++ b/drawable_resources/other/file-icon.svg @@ -1,5 +1,4 @@ - - + diff --git a/drawable_resources/other/file-password-request.svg b/drawable_resources/other/file-password-request.svg index 529955ee3..917f9bb52 100644 --- a/drawable_resources/other/file-password-request.svg +++ b/drawable_resources/other/file-password-request.svg @@ -1,5 +1,4 @@ - - +