diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTabFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTabFragment.java index 0032d2742..a2a121bd6 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTabFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/HomeTabFragment.java @@ -1,7 +1,6 @@ package org.joinmastodon.android.fragments; import static org.joinmastodon.android.GlobalUserPreferences.reduceMotion; -import static org.joinmastodon.android.GlobalUserPreferences.showNewPostsButton; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; @@ -47,6 +46,7 @@ import org.joinmastodon.android.events.HashtagUpdatedEvent; import org.joinmastodon.android.events.ListDeletedEvent; import org.joinmastodon.android.events.ListUpdatedCreatedEvent; import org.joinmastodon.android.events.SelfUpdateStateChangedEvent; +import org.joinmastodon.android.fragments.settings.SettingsFragment; import org.joinmastodon.android.model.Announcement; import org.joinmastodon.android.model.Hashtag; import org.joinmastodon.android.model.HeaderPaginationList; diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java index 7a20eaa68..d30a93db3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/onboarding/AccountActivationFragment.java @@ -23,8 +23,7 @@ import org.joinmastodon.android.api.requests.accounts.UpdateAccountCredentials; import org.joinmastodon.android.api.session.AccountActivationInfo; import org.joinmastodon.android.api.session.AccountSession; import org.joinmastodon.android.api.session.AccountSessionManager; -import org.joinmastodon.android.fragments.HomeFragment; -import org.joinmastodon.android.fragments.SettingsFragment; +import org.joinmastodon.android.fragments.settings.SettingsFragment; import org.joinmastodon.android.model.Account; import org.joinmastodon.android.ui.AccountSwitcherSheet; import org.joinmastodon.android.ui.utils.UiUtils; diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFragment.java similarity index 99% rename from mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java rename to mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFragment.java index 898392685..d98ea20ff 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/SettingsFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/settings/SettingsFragment.java @@ -1,4 +1,4 @@ -package org.joinmastodon.android.fragments; +package org.joinmastodon.android.fragments.settings; import android.animation.ObjectAnimator; import android.annotation.SuppressLint; @@ -12,7 +12,6 @@ import android.os.Build; import android.os.Bundle; import android.provider.Settings; import android.text.TextUtils; -import android.util.Log; import android.util.LruCache; import android.util.TypedValue; import android.view.Gravity; @@ -45,7 +44,6 @@ import org.joinmastodon.android.GlobalUserPreferences; import org.joinmastodon.android.GlobalUserPreferences.ColorPreference; import org.joinmastodon.android.MainActivity; import org.joinmastodon.android.MastodonApp; -import org.joinmastodon.android.PushNotificationReceiver; import org.joinmastodon.android.R; import org.joinmastodon.android.api.MastodonAPIController; import org.joinmastodon.android.api.PushSubscriptionManager; @@ -54,6 +52,7 @@ import org.joinmastodon.android.api.session.AccountActivationInfo; import org.joinmastodon.android.api.session.AccountSession; import org.joinmastodon.android.api.session.AccountSessionManager; import org.joinmastodon.android.events.SelfUpdateStateChangedEvent; +import org.joinmastodon.android.fragments.MastodonToolbarFragment; import org.joinmastodon.android.fragments.onboarding.InstanceRulesFragment; import org.joinmastodon.android.model.Instance; import org.joinmastodon.android.fragments.onboarding.AccountActivationFragment; @@ -66,7 +65,6 @@ import org.joinmastodon.android.updater.GithubSelfUpdater; import org.parceler.Parcels; import java.util.ArrayList; -import java.util.Map; import java.util.function.Consumer; import androidx.annotation.DrawableRes; @@ -82,7 +80,7 @@ import me.grishka.appkit.utils.BindableViewHolder; import me.grishka.appkit.utils.V; import me.grishka.appkit.views.UsableRecyclerView; -public class SettingsFragment extends MastodonToolbarFragment{ +public class SettingsFragment extends MastodonToolbarFragment { private View view; private UsableRecyclerView list; private ArrayList items=new ArrayList<>();