mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 10:17:18 +00:00
Fixed warning
This commit is contained in:
parent
27683fda58
commit
9e602ca950
1 changed files with 1 additions and 11 deletions
|
@ -21,14 +21,12 @@ package eu.faircode.email;
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.text.TextUtils;
|
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.CheckBox;
|
import android.widget.CheckBox;
|
||||||
import android.widget.EditText;
|
import android.widget.EditText;
|
||||||
import android.widget.ImageButton;
|
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
import android.widget.Spinner;
|
import android.widget.Spinner;
|
||||||
|
|
||||||
|
@ -59,8 +57,7 @@ public class Helper {
|
||||||
if (child instanceof Spinner ||
|
if (child instanceof Spinner ||
|
||||||
child instanceof EditText ||
|
child instanceof EditText ||
|
||||||
child instanceof CheckBox ||
|
child instanceof CheckBox ||
|
||||||
child instanceof ImageView ||
|
child instanceof ImageView /* =ImageButton */)
|
||||||
child instanceof ImageButton)
|
|
||||||
child.setEnabled(enabled);
|
child.setEnabled(enabled);
|
||||||
if (child instanceof BottomNavigationView) {
|
if (child instanceof BottomNavigationView) {
|
||||||
Menu menu = ((BottomNavigationView) child).getMenu();
|
Menu menu = ((BottomNavigationView) child).getMenu();
|
||||||
|
@ -79,13 +76,6 @@ public class Helper {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
static String localizeFolderName(Context context, TupleFolderEx folder) {
|
|
||||||
if (TextUtils.isEmpty(folder.accountName))
|
|
||||||
return localizeFolderName(context, folder.name);
|
|
||||||
else
|
|
||||||
return localizeFolderName(context, folder.name) + "/" + folder.accountName;
|
|
||||||
}
|
|
||||||
|
|
||||||
static String formatThrowable(Throwable ex) {
|
static String formatThrowable(Throwable ex) {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(ex.getMessage());
|
sb.append(ex.getMessage());
|
||||||
|
|
Loading…
Reference in a new issue