From 269794bfc35780785fea0ed66b18467654370086 Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Mon, 20 Feb 2023 11:14:33 -0300 Subject: [PATCH] Changing hardcoded fosstodon to domain --- .../android/fragments/CustomLocalTimelineFragment.java | 4 ++-- .../org/joinmastodon/android/model/TimelineDefinition.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java index dd6bb3a4f..ec3b0196c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/CustomLocalTimelineFragment.java @@ -48,7 +48,7 @@ public class CustomLocalTimelineFragment extends PinnableStatusListFragment { public void onAttach(Activity activity){ super.onAttach(activity); domain=getArguments().getString("domain"); - updateTitle(getArguments().getString("domain")); + updateTitle(domain); setHasOptionsMenu(true); } @@ -82,7 +82,7 @@ public class CustomLocalTimelineFragment extends PinnableStatusListFragment { onDataLoaded(result, !result.isEmpty()); } }) - .execNoAuth("fosstodon.org"); + .execNoAuth(domain); } @Override diff --git a/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java b/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java index ba832cd80..043d068fe 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java +++ b/mastodon/src/main/java/org/joinmastodon/android/model/TimelineDefinition.java @@ -30,7 +30,7 @@ public class TimelineDefinition { private @Nullable String listTitle; private @Nullable String hashtagName; - private @Nullable String customLocalTimelineDomain; + private @Nullable String domain; public static TimelineDefinition ofList(String listId, String listTitle) { TimelineDefinition def = new TimelineDefinition(TimelineType.LIST); @@ -55,7 +55,7 @@ public class TimelineDefinition { public static TimelineDefinition ofCustomLocalTimeline(String domain) { TimelineDefinition def = new TimelineDefinition(TimelineType.CUSTOM_LOCAL_TIMELINE); - def.customLocalTimelineDomain = domain; + def.domain = domain; return def; } @@ -92,7 +92,7 @@ public class TimelineDefinition { case POST_NOTIFICATIONS -> ctx.getString(R.string.sk_timeline_posts); case LIST -> listTitle; case HASHTAG -> hashtagName; - case CUSTOM_LOCAL_TIMELINE -> customLocalTimelineDomain; + case CUSTOM_LOCAL_TIMELINE -> domain; }; }