mirror of
https://github.com/Michatec/Radio.git
synced 2026-04-01 16:06:27 +02:00
Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* MainActivity.kt
|
||||
* Implements the MainActivity class
|
||||
* MainActivity is the default activity that can host the player fragment and the settings fragment
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio
|
||||
|
||||
import android.content.SharedPreferences
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* PlayerFragment.kt
|
||||
* Implements the PlayerFragment class
|
||||
* PlayerFragment is the fragment that hosts Radio's list of stations and a player sheet
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio
|
||||
|
||||
import android.app.Activity
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* PlayerService.kt
|
||||
* Implements the PlayerService class
|
||||
* PlayerService is Radio's foreground service that plays radio station audio
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio
|
||||
|
||||
import android.app.PendingIntent
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* Radio.kt
|
||||
* Implements the Radio class
|
||||
* Radio is the base Application class that sets up day and night theme
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio
|
||||
|
||||
import android.app.Application
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* CollectionAdapter.kt
|
||||
* Implements the CollectionAdapter class
|
||||
* A CollectionAdapter is a custom adapter providing station card views for a RecyclerView
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.collection
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* CollectionViewModel.kt
|
||||
* Implements the CollectionViewModel class
|
||||
* A CollectionViewModel stores the collection of stations as live data
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.collection
|
||||
|
||||
import android.app.Application
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
/*
|
||||
* Collection.kt
|
||||
* Implements the Collection class
|
||||
* A Collection object holds a list of radio stations
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
package com.michatec.radio.core
|
||||
|
||||
import android.os.Parcelable
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* Station.kt
|
||||
* Implements the Station class
|
||||
* A Station object holds the base data of a radio
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.core
|
||||
|
||||
import android.os.Parcelable
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* AddStationDialog.kt
|
||||
* Implements the AddStationDialog class
|
||||
* A AddStationDialog shows a dialog with list of stations to import
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-23 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.dialogs
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* ErrorDialog.kt
|
||||
* Implements the ErrorDialog class
|
||||
* An ErrorDialog shows an error dialog with details
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.dialogs
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* FindStationDialog.kt
|
||||
* Implements the FindStationDialog class
|
||||
* A FindStationDialog shows a dialog with search box and list of results
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.dialogs
|
||||
|
||||
import android.annotation.SuppressLint
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* YesNoDialog
|
||||
* Implements the YesNoDialog class
|
||||
* A YesNoDialog asks the user if he/she wants to do something or not
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.dialogs
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,18 +1,3 @@
|
||||
/*
|
||||
* ArrayListExt.kt
|
||||
* Implements the ArrayListExt extension methods
|
||||
* Useful extension methods for ArrayLists
|
||||
* Source: https://raw.githubusercontent.com/googlesamples/android-UniversalMusicPlayer/master/common/src/main/java/com/example/android/uamp/media/extensions/MediaMetadataCompatExt.kt
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.extensions
|
||||
|
||||
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* MediaControllerExt.kt
|
||||
* Implements the MediaControllerExt extension methods
|
||||
* Useful extension methods for MediaController
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.extensions
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* AppThemeHelper.kt
|
||||
* Implements the AppThemeHelper object
|
||||
* A AppThemeHelper can set the different app themes: Light Mode, Dark Mode, Follow System
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* AudioHelper.kt
|
||||
* Implements the AudioHelper object
|
||||
* A AudioHelper provides helper methods for handling audio files
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.util.Log
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* BackupHelper.kt
|
||||
* Implements the BackupHelper object
|
||||
* A BackupHelper provides helper methods for backing up and restoring the radio station collection
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.ContentResolver
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* CollectionHelper.kt
|
||||
* Implements the CollectionHelper object
|
||||
* A CollectionHelper provides helper methods for the collection of stations
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* DateTimeHelper.kt
|
||||
* Implements the DateTimeHelper object
|
||||
* A DateTimeHelper provides helper methods for converting Date and Time objects
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.util.Log
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* DownloadFinishedReceiver.kt
|
||||
* Implements the DownloadFinishedReceiver class
|
||||
* A DownloadFinishedReceiver listens for finished downloads
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.app.DownloadManager
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* DownloadHelper.kt
|
||||
* Implements the DownloadHelper object
|
||||
* A DownloadHelper provides helper methods for downloading files
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.app.DownloadManager
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* FileHelper.kt
|
||||
* Implements the FileHelper object
|
||||
* A FileHelper provides helper methods for reading and writing files from and to device storage
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.app.Activity
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* ImageHelper.kt
|
||||
* Implements the ImageHelper object
|
||||
* An ImageHelper provides helper methods for image related operations
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* NetworkHelper.kt
|
||||
* Implements the NetworkHelper object
|
||||
* A NetworkHelper provides helper methods for network related operations
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* PreferencesHelper.kt
|
||||
* Implements the PreferencesHelper object
|
||||
* A PreferencesHelper provides helper methods for the saving and loading values from shared preferences
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* ShortcutHelper.kt
|
||||
* Implements the ShortcutHelper object
|
||||
* A ShortcutHelper creates and handles station shortcuts on the Home screen
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* UpdateHelper.kt
|
||||
* Implements the UpdateHelper class
|
||||
* A UpdateHelper provides methods to update a single station or the whole collection of stations
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.helpers
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* DirectInputCheck.kt
|
||||
* Implements the DirectInputCheck class
|
||||
* A DirectInputCheck checks if a station url is valid and returns station via a listener
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-23 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.search
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* RadioBrowserResult.kt
|
||||
* Implements the RadioBrowserResult class
|
||||
* A RadioBrowserResult is the search result of a request to api.radio-browser.info
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.search
|
||||
|
||||
import com.google.gson.annotations.Expose
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* RadioBrowserSearch.kt
|
||||
* Implements the RadioBrowserSearch class
|
||||
* A RadioBrowserSearch performs searches on the radio-browser.info database
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.search
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* SearchResultAdapter.kt
|
||||
* Implements the SearchResultAdapter class
|
||||
* A SearchResultAdapter is a custom adapter providing search result views for a RecyclerView
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.search
|
||||
|
||||
import android.content.Context
|
||||
|
||||
@@ -1,17 +1,3 @@
|
||||
/*
|
||||
* PlayerState.kt
|
||||
* Implements the PlayerState class
|
||||
* A PlayerState holds parameters describing the state of the player part of the UI
|
||||
*
|
||||
* This file is part of
|
||||
* TRANSISTOR - Radio App for Android
|
||||
*
|
||||
* Copyright (c) 2015-22 - Y20K.org
|
||||
* Licensed under the MIT-License
|
||||
* http://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
|
||||
package com.michatec.radio.ui
|
||||
|
||||
import android.os.Parcelable
|
||||
|
||||
Reference in New Issue
Block a user