Fix BindingAdapter warnings

This commit is contained in:
Dominik Schürmann 2016-11-21 23:12:06 +01:00
parent 148f3f49bf
commit fe2e4abef9
2 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ import java.util.Date;
public class ImportKeysBindings {
@BindingAdapter({"app:keyUserId", "app:keySecret", "app:keyRevokedOrExpired", "app:query"})
@BindingAdapter({"keyUserId", "keySecret", "keyRevokedOrExpired", "query"})
public static void setUserId(TextView textView, CharSequence userId, boolean secret,
boolean revokedOrExpired, String query) {
@ -38,7 +38,7 @@ public class ImportKeysBindings {
}
}
@BindingAdapter({"app:keyUserEmail", "app:keyRevokedOrExpired", "app:query"})
@BindingAdapter({"keyUserEmail", "keyRevokedOrExpired", "query"})
public static void setUserEmail(TextView textView, CharSequence userEmail,
boolean revokedOrExpired, String query) {
@ -52,7 +52,7 @@ public class ImportKeysBindings {
textView.setTextColor(ImportKeysBindingsUtils.getColor(context, revokedOrExpired));
}
@BindingAdapter({"app:keyCreation", "app:keyRevokedOrExpired"})
@BindingAdapter({"keyCreation", "keyRevokedOrExpired"})
public static void setCreation(TextView textView, Date creationDate, boolean revokedOrExpired) {
Context context = textView.getContext();

View file

@ -19,7 +19,7 @@ import java.util.Map;
public class ImportKeysExtraBindings {
@BindingAdapter({"app:keyRevoked", "app:keyExpired"})
@BindingAdapter({"keyRevoked", "keyExpired"})
public static void setStatus(ImageView imageView, boolean revoked, boolean expired) {
Context context = imageView.getContext();
@ -32,7 +32,7 @@ public class ImportKeysExtraBindings {
}
}
@BindingAdapter({"app:keyId"})
@BindingAdapter({"keyId"})
public static void setKeyId(TextView textView, String keyId) {
Context context = textView.getContext();
String text;
@ -45,7 +45,7 @@ public class ImportKeysExtraBindings {
textView.setText(text);
}
@BindingAdapter({"app:keyUserIds", "app:query"})
@BindingAdapter({"keyUserIds", "query"})
public static void setUserIds(LinearLayout linearLayout, ArrayList userIds, String query) {
linearLayout.removeAllViews();