diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/MoshidonLoginFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/MoshidonLoginFragment.java index 7a96c3926..5a7cfce94 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/MoshidonLoginFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/MoshidonLoginFragment.java @@ -203,7 +203,7 @@ public class MoshidonLoginFragment extends InstanceCatalogFragment { private final RadioButton radioButton; public InstanceViewHolder(){ - super(getActivity(), R.layout.item_megalodon_instance, list); + super(getActivity(), R.layout.item_moshidon_instance, list); // itemView.setPadding(V.dp(16), V.dp(16), V.dp(16), V.dp(16)); // TypedValue value = new TypedValue(); diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java b/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java index a9a0aeab7..a93946ad3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/Instance.java @@ -176,4 +176,19 @@ public class Instance extends BaseModel{ public int minExpiration; public int maxExpiration; } + + @Parcel + public static class V2 extends BaseModel { + public V2.Configuration configuration; + + @Parcel + public static class Configuration { + public TranslationConfiguration translation; + } + + @Parcel + public static class TranslationConfiguration{ + public boolean enabled; + } + } } diff --git a/mastodon/src/main/res/layout/item_megalodon_instance.xml b/mastodon/src/main/res/layout/item_moshidon_instance.xml similarity index 100% rename from mastodon/src/main/res/layout/item_megalodon_instance.xml rename to mastodon/src/main/res/layout/item_moshidon_instance.xml