1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Fixed warning

This commit is contained in:
M66B 2018-08-16 11:23:55 +00:00
parent 27683fda58
commit 9e602ca950

View file

@ -21,14 +21,12 @@ package eu.faircode.email;
import android.content.Context;
import android.content.res.TypedArray;
import android.text.TextUtils;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.Spinner;
@ -59,8 +57,7 @@ public class Helper {
if (child instanceof Spinner ||
child instanceof EditText ||
child instanceof CheckBox ||
child instanceof ImageView ||
child instanceof ImageButton)
child instanceof ImageView /* =ImageButton */)
child.setEnabled(enabled);
if (child instanceof BottomNavigationView) {
Menu menu = ((BottomNavigationView) child).getMenu();
@ -79,13 +76,6 @@ public class Helper {
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) {
StringBuilder sb = new StringBuilder();
sb.append(ex.getMessage());