Skip to content

Commit

Permalink
remove explore tab
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow578 committed Aug 1, 2021
1 parent 5688dee commit 79fc3b6
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 499 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public class BackupData {
* the tracks in this backup
*/
@NonNull
public List<TrackInfo> tracks;
public final List<TrackInfo> tracks;

/**
* the time the backup was created
*/
@Nullable
public LocalDateTime backupTime;
public final LocalDateTime backupTime;

public BackupData(@NonNull List<TrackInfo> tracks, @Nullable LocalDateTime backupTime) {
this.tracks = tracks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@
import io.github.shadow578.music_dl.ui.base.BaseActivity;
import io.github.shadow578.music_dl.ui.more.MoreFragment;
import io.github.shadow578.music_dl.ui.tracks.TracksFragment;
import io.github.shadow578.music_dl.ui.ytmusic.YoutubeMusicFragment;

/**
* the main activity
*/
public class MainActivity extends BaseActivity {

private final YoutubeMusicFragment exploreFragment = new YoutubeMusicFragment();
private final TracksFragment tracksFragment = new TracksFragment();
private final MoreFragment moreFragment = new MoreFragment();

Expand All @@ -35,7 +33,6 @@ public class MainActivity extends BaseActivity {
*/
private final List<Section> sectionOrder = Arrays.asList(
Section.Tracks,
Section.Explore,
Section.More
);

Expand Down Expand Up @@ -114,8 +111,6 @@ private Fragment getSectionFragment(@NonNull Section section) {
default:
case Tracks:
return tracksFragment;
case Explore:
return exploreFragment;
case More:
return moreFragment;
}
Expand All @@ -128,17 +123,12 @@ public enum Section {
/**
* the tracks library fragment
*/
Tracks(R.id.nav_tracks, false),

/**
* the explore fragment
*/
Explore(R.id.nav_explore, false),
Tracks(R.id.nav_tracks, true),

/**
* the more / about fragment
*/
More(R.id.nav_more, false);
More(R.id.nav_more, true);

/**
* the id of the menu item for this section (in bottom navigation)
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 79fc3b6

Please sign in to comment.