Merge remote-tracking branch 'origin/main'

This commit is contained in:
2026-03-30 09:18:34 +02:00
42 changed files with 693 additions and 475 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -65,7 +65,7 @@
<string name="pref_edit_station_title">Rediger station</string>
<string name="pref_general_title">Generelt</string>
<string name="pref_license_title">Denne app er open source</string>
<string name="pref_license_summary">Licenseret under MIT-licensen</string>
<string name="pref_license_summary">Licenseret under GPLv3-licensen</string>
<string name="pref_links_title">Links</string>
<string name="pref_m3u_export_summary">Gem stationer som M3U-playlister til brug i andre afspillere.</string>
<string name="pref_m3u_export_title">Eksportér M3U-playliste</string>

View File

@@ -70,7 +70,7 @@
<string name="pref_edit_station_title">Sender bearbeiten</string>
<string name="pref_general_title">Allgemein</string>
<string name="pref_license_title">Diese Anwendung ist Open Source</string>
<string name="pref_license_summary">Lizenziert unter der MIT License</string>
<string name="pref_license_summary">Lizenziert unter der GPLv3 License</string>
<string name="pref_links_title">Links</string>
<string name="pref_m3u_export_summary">Radiosender in einer M3U-Playlistdatei sichern, die in andere Player importiert werden können.</string>
<string name="pref_m3u_export_title">M3U-Playlist exportieren</string>

View File

@@ -63,7 +63,7 @@
<string name="pref_edit_station_title">Επεξεργασία Σταθμών</string>
<string name="pref_general_title">Γενικές ρυθμίσεις</string>
<string name="pref_license_title">Αυτή η εφαρμογή είναι ανοικτού κώδικα</string>
<string name="pref_license_summary">Αδειοδότηση με άδεια MIT</string>
<string name="pref_license_summary">Αδειοδότηση με άδεια GPLv3</string>
<string name="pref_links_title">Σύνδεσμοι</string>
<string name="pref_m3u_export_summary">Αποθηκεύστε τους ραδιοφωνικούς σας σταθμούς σε ένα αρχείο λίστας αναπαραγωγής M3U που μπορεί να εισαχθεί σε άλλους αναπαραγωγούς.</string>
<string name="pref_m3u_export_title">Εξαγωγή M3U</string>

View File

@@ -65,7 +65,7 @@
<string name="pref_edit_station_title">Modifier la station</string>
<string name="pref_general_title">Général</string>
<string name="pref_license_title">Cette application est Open Source</string>
<string name="pref_license_summary">Sous licence MIT</string>
<string name="pref_license_summary">Sous licence GPLv3</string>
<string name="pref_links_title">Liens</string>
<string name="pref_m3u_export_summary">Enregistrez les stations dans un fichier de playlist M3U pouvant être importé dans dautres lecteurs.</string>
<string name="pref_m3u_export_title">Exporter la playlist M3U</string>

View File

@@ -65,7 +65,7 @@
<string name="pref_edit_station_title">局を編集</string>
<string name="pref_general_title">一般</string>
<string name="pref_license_title">このアプリはオープンソースです</string>
<string name="pref_license_summary">MITライセンスで提供されています</string>
<string name="pref_license_summary">GPLv3ライセンスで提供されています</string>
<string name="pref_links_title">リンク</string>
<string name="pref_m3u_export_summary">ラジオ局をM3Uプレイリストとして保存し、他のプレイヤーにインポートできます。</string>
<string name="pref_m3u_export_title">M3Uプレイリストをエクスポート</string>

View File

@@ -63,7 +63,7 @@
<string name="pref_edit_station_title">Редактировать станции</string>
<string name="pref_general_title">Общие</string>
<string name="pref_license_title">Это приложение с открытым исходным кодом</string>
<string name="pref_license_summary">Лицензировано под лицензией MIT</string>
<string name="pref_license_summary">Лицензировано под лицензией GPLv3</string>
<string name="pref_links_title">Ссылки</string>
<string name="pref_m3u_export_summary">Сохраните ваши радиостанции в файл плейлиста M3U, который можно импортировать в другие проигрыватели.</string>
<string name="pref_m3u_export_title">Экспорт M3U</string>

View File

@@ -63,7 +63,7 @@
<string name="pref_edit_station_title">Редагувати станції</string>
<string name="pref_general_title">Загальні</string>
<string name="pref_license_title">Цей застосунок має відкритий початковий код</string>
<string name="pref_license_summary">На умовах ліцензії MIT</string>
<string name="pref_license_summary">На умовах ліцензії GPLv3</string>
<string name="pref_links_title">Посилання</string>
<string name="pref_m3u_export_summary">Збережіть свої радіостанції у файлі списку відтворення M3U, який можна імпортувати в інші програвачі.</string>
<string name="pref_m3u_export_title">Експорт M3U</string>

View File

@@ -80,7 +80,7 @@
<string name="pref_github_title" translatable="false">GitHub</string>
<string name="pref_github_summary" translatable="false">github.com/michatec/Radio</string>
<string name="pref_license_title">This application is open source</string>
<string name="pref_license_summary">Licensed under the MIT License</string>
<string name="pref_license_summary">Licensed under the GPLv3 License</string>
<string name="pref_links_title">Links</string>
<string name="pref_m3u_export_summary">Save your radio stations to an M3U playlist file that can be imported into other players.</string>
<string name="pref_m3u_export_title">Export M3U</string>