Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearfog committed Aug 26, 2023
1 parent 185b2f7 commit f543267
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ private Notification buildNotification() {
}

/**
* post/cancel notification
*
* @param notification
* @param notification notification to post or null to remove existing notification
*/
private void postNotification(@Nullable Notification notification) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
import androidx.core.content.res.ResourcesCompat;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.lastfm.Album;
import org.nuclearfog.apollo.lastfm.Artist;
import org.nuclearfog.apollo.lastfm.ImageSize;
import org.nuclearfog.apollo.lastfm.MusicEntry;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.utils.MusicUtils;
import org.nuclearfog.apollo.utils.PreferenceUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import android.os.Bundle;
import android.support.v4.media.session.MediaSessionCompat;

import org.nuclearfog.apollo.service.MusicPlaybackService;

/**
* callback class used by media buttons to control playback
* todo add more button methods
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
import androidx.appcompat.widget.SearchView;
import androidx.appcompat.widget.SearchView.OnQueryTextListener;

import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.receiver.PlaybackStatus;
import org.nuclearfog.apollo.receiver.PlaybackStatus.PlayStatusListener;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.views.PlayPauseButton;
import org.nuclearfog.apollo.ui.views.RepeatButton;
import org.nuclearfog.apollo.ui.views.ShuffleButton;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
import androidx.viewpager.widget.ViewPager;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.adapters.PagerAdapter;
import org.nuclearfog.apollo.cache.ImageFetcher;
import org.nuclearfog.apollo.receiver.PlaybackStatus;
import org.nuclearfog.apollo.receiver.PlaybackStatus.PlayStatusListener;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.dialogs.DeleteDialog.DeleteDialogCallback;
import org.nuclearfog.apollo.ui.fragments.FragmentCallback;
import org.nuclearfog.apollo.ui.fragments.QueueFragment;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
package org.nuclearfog.apollo.ui.activities;

import android.annotation.SuppressLint;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
import androidx.core.content.res.ResourcesCompat;
import androidx.fragment.app.Fragment;

import org.nuclearfog.apollo.ui.appmsg.AppMsg;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.adapters.ThemesAdapter;
import org.nuclearfog.apollo.adapters.ThemesAdapter.ThemeHolder;
import org.nuclearfog.apollo.adapters.recycler.RecycleHolder;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;
import org.nuclearfog.apollo.utils.ThemeUtils;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;

import org.nuclearfog.apollo.ui.views.TitlePageIndicator;
import org.nuclearfog.apollo.ui.views.TitlePageIndicator.OnCenterItemClickListener;

import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.adapters.PagerAdapter;
import org.nuclearfog.apollo.ui.fragments.AlbumFragment;
Expand All @@ -38,6 +35,8 @@
import org.nuclearfog.apollo.ui.fragments.PlaylistFragment;
import org.nuclearfog.apollo.ui.fragments.RecentFragment;
import org.nuclearfog.apollo.ui.fragments.SongFragment;
import org.nuclearfog.apollo.ui.views.TitlePageIndicator;
import org.nuclearfog.apollo.ui.views.TitlePageIndicator.OnCenterItemClickListener;
import org.nuclearfog.apollo.utils.MusicUtils;
import org.nuclearfog.apollo.utils.PreferenceUtils;
import org.nuclearfog.apollo.utils.SortOrder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import androidx.appcompat.widget.AppCompatImageButton;
import androidx.core.content.ContextCompat;

import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.views.theme.HoloSelector;
import org.nuclearfog.apollo.utils.ApolloUtils;
import org.nuclearfog.apollo.utils.MusicUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import androidx.appcompat.widget.AppCompatImageButton;
import androidx.core.content.ContextCompat;

import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.views.theme.HoloSelector;
import org.nuclearfog.apollo.utils.ApolloUtils;
import org.nuclearfog.apollo.utils.MusicUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import android.widget.RemoteViews;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.activities.AudioPlayerActivity;
import org.nuclearfog.apollo.ui.activities.HomeActivity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import android.widget.RemoteViews;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.activities.AudioPlayerActivity;
import org.nuclearfog.apollo.ui.activities.HomeActivity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import android.widget.RemoteViews;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.activities.AudioPlayerActivity;
import org.nuclearfog.apollo.ui.activities.HomeActivity;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.Config;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.service.RecentWidgetService;
import org.nuclearfog.apollo.ui.activities.AudioPlayerActivity;
import org.nuclearfog.apollo.ui.activities.HomeActivity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@
import androidx.fragment.app.FragmentActivity;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;

import org.nuclearfog.apollo.Config;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.cache.ImageCache;
import org.nuclearfog.apollo.cache.ImageFetcher;
import org.nuclearfog.apollo.ui.activities.HomeActivity;
import org.nuclearfog.apollo.ui.activities.ShortcutActivity;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;
import org.nuclearfog.apollo.ui.dialogs.ColorSchemeDialog;
import org.nuclearfog.apollo.ui.views.ColorPickerView;

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/org/nuclearfog/apollo/utils/MusicUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,17 @@
import androidx.fragment.app.FragmentActivity;

import com.andrew.apollo.IApolloService;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.loaders.NowPlayingCursor;
import org.nuclearfog.apollo.model.Song;
import org.nuclearfog.apollo.player.AudioEffects;
import org.nuclearfog.apollo.provider.FavoritesStore;
import org.nuclearfog.apollo.provider.PopularStore;
import org.nuclearfog.apollo.provider.RecentStore;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;
import org.nuclearfog.apollo.ui.dialogs.DeleteDialog;
import org.nuclearfog.apollo.ui.dialogs.PlaylistCreateDialog;

Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/org/nuclearfog/apollo/utils/NavUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
import android.provider.MediaStore;

import org.nuclearfog.apollo.BuildConfig;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;

import org.nuclearfog.apollo.Config;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.ui.activities.HomeActivity;
import org.nuclearfog.apollo.ui.activities.ProfileActivity;
import org.nuclearfog.apollo.ui.activities.SearchActivity;
import org.nuclearfog.apollo.ui.activities.SettingsActivity;
import org.nuclearfog.apollo.ui.appmsg.AppMsg;

/**
* Various navigation helpers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import android.content.SharedPreferences;
import android.preference.PreferenceManager;

import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.R;
import org.nuclearfog.apollo.service.MusicPlaybackService;
import org.nuclearfog.apollo.ui.fragments.AlbumFragment;
import org.nuclearfog.apollo.ui.fragments.ArtistFragment;
import org.nuclearfog.apollo.ui.fragments.SongFragment;
Expand Down

0 comments on commit f543267

Please sign in to comment.