44 Commits

Author SHA1 Message Date
Michatec c1bc8b3e19 refactor(android): simplify notification permission request
Remove the explicit permission type from the `RequestPermission`
contract in `MainActivity` to rely on default behavior or
internal contract handling.
2026-05-30 23:11:19 +02:00
Michatec 8835cadd6a fix(ui): specify notification permission type in launcher
Explicitly pass `Manifest.permission.POST_NOTIFICATIONS` to the
`RequestPermission` contract to ensure the correct permission is
requested on Android 13+.
2026-05-30 23:09:50 +02:00
Michatec 384926cf08 chore(build): disable debug mode in build configuration
Set `IS_DEBUG_ENABLED` to `false` in `app/build.gradle.kts` to prepare
the build configuration for release.
2026-05-30 22:51:25 +02:00
Michatec 2cf98b89b3 feat(notification): allow custom intent for notifications
Update `NotificationSys` to support passing a custom `Intent` when
showing notifications. This enables more flexible navigation, such as
opening a web URL for update notifications.

In `PlayerFragment`, use this new capability to trigger a browser
intent for update notifications on non-Android TV devices.
2026-05-30 22:48:26 +02:00
Michatec 6fa1e5e2c0 style(ui): update test notification icon
Replace the white notification icon with a standard 24dp icon in
SettingsFragment to ensure visual consistency.
2026-05-30 22:30:32 +02:00
Michatec 64d0f3a71f fix(android): resolve compilation error in TV feature detection
Update the Android TV feature check to use the instance-based
`packageManager` instead of the static `PackageManager` class.
This ensures the `hasSystemFeature` method is called correctly on
the available context instance.
2026-05-30 22:23:22 +02:00
Michatec c9122d74f8 refactor(android): fix Android TV feature detection syntax
Correct the usage of `hasSystemFeature` by calling it on the `packageManager` instance instead of the `PackageManager` class. This fixes a compilation error in `MainActivity` and `SettingsFragment`.
2026-05-30 22:18:32 +02:00
Michatec 1879827f4b feat(ui): add test notification preference and optimize Android TV logic
Introduce a "Test Notification" preference in the settings menu to allow users to verify the notification system. This preference is automatically hidden on Android TV devices to maintain a clean UI.

Additionally, refactor notification permission handling to skip requests on Android TV and improve the internal check for Leanback support using a lazy property.

Updated string resources for the new preference across all supported languages.
2026-05-30 22:15:51 +02:00
Michatec 23079649c5 style(i18n): fix typography in Danish notification description
Update the apostrophe in `notification_channel_description` to use a
typographic curly apostrophe for better linguistic accuracy in
Danish.
2026-05-30 21:36:22 +02:00
Michatec 2c7e02889d feat(i18n): add notification channel description to all languages
Add the `notification_channel_description` string resource to the
default and all localized string files to provide context for the
notification channel.
2026-05-30 21:33:43 +02:00
Michatec b1bcfa2137 style(i18n): update French typography in string resources
Replace standard apostrophes with typographic curly apostrophes in
`notification_test_content` and `snackbar_failed_permission_notification`
to improve French localization consistency.
2026-05-30 21:23:24 +02:00
Michatec 2814ff2cfa feat(android): implement POST_NOTIFICATIONS permission handling
Add NotificationSys to manage system notifications and update
MainActivity to request POST_NOTIFICATIONS permission on Android 13+.
Includes localized string resources for notification testing and
permission error feedback.
2026-05-30 21:17:01 +02:00
Michachatz a9f8efc72d Update star history chart link in README.md 2026-05-26 00:01:34 +02:00
Michachatz a5e27149ba Add star history section to README
Added a star history section with a chart to the README.
2026-05-26 00:00:35 +02:00
Michatec 2688f22a6a chore(app): add IS_DEBUG_ENABLED build config field
Introduce a `IS_DEBUG_ENABLED` boolean flag in `BuildConfig` for both
debug and release build types. This flag is used to suppress update
notifications in `PlayerFragment` when debugging and before its a version released.
2026-05-15 22:20:23 +02:00
Michachatz 73edf9d816 Merge pull request #73 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.5.1
2026-05-15 21:54:37 +02:00
Michachatz 9f39b1dbbd Merge pull request #74 from Michatec/renovate/media3
fix(deps): update media3 to v1.10.1
2026-05-15 21:54:18 +02:00
Michachatz 5d82d722bd Merge pull request #75 from Michatec/renovate/material
fix(deps): update dependency com.google.android.material:material to v1.14.0
2026-05-15 21:53:50 +02:00
Michatec 5d7df9550e feat(ui): add security preference to settings
Add a new security preference in the settings screen that links to the
SECURITY.md file on GitHub. This includes a new security icon and
localized strings for multiple languages.
2026-05-15 21:51:07 +02:00
renovate[bot] c7b7114010 fix(deps): update dependency com.google.android.material:material to v1.14.0 2026-05-13 18:06:11 +00:00
renovate[bot] ed8f17e436 fix(deps): update media3 to v1.10.1 2026-05-12 16:00:26 +00:00
renovate[bot] 2cc2a23e35 chore(deps): update gradle to v9.5.1 2026-05-12 16:00:20 +00:00
Michachatz f7ddc30127 Merge pull request #72 from Michatec/renovate/freedroidwarn
fix(deps): update dependency com.github.woheller69:freedroidwarn to v1.13
2026-05-11 07:50:32 +02:00
renovate[bot] bc0eb60e04 fix(deps): update dependency com.github.woheller69:freedroidwarn to v1.13 2026-05-10 11:51:08 +00:00
Michatec dcae7bafb5 feat: apply custom theme to ExpandedControllerActivity 2026-05-07 13:49:37 +02:00
Michatec cf3fd0bc56 refactor(media): move MEDIA_BUTTON action to MediaSessionService 2026-05-07 13:43:58 +02:00
Michatec 7d6b0fe136 feat: implement station navigation and update to SDK 37
- Implement `seekToNext` and `seekToPrevious` in `PlayerService` to allow switching between radio stations.
- Update `compileSdk` and `targetSdk` to 37 and bump version to 14.6.
- Modify `PlayerService` to remain active while paused to improve playback resumption.
- Modernize media resumption logic using Media3 `isRecent` check instead of legacy extras.
- Refactor `DefaultRenderersFactory` to use non-nullable `AudioSink` return types.
- General code cleanup using KTX extensions (e.g., `View.isEmpty()`) and Kotlin property access syntax.
2026-05-07 13:40:35 +02:00
Michachatz 0faeea7631 Merge pull request #70 from Michatec/renovate/agp
chore(deps): update agp to v9.2.1
2026-05-07 12:18:23 +02:00
Michachatz c45adf07c8 Merge pull request #71 from Michatec/renovate/media
fix(deps): update dependency androidx.media:media to v1.8.0
2026-05-07 12:18:08 +02:00
renovate[bot] acd1b067b3 fix(deps): update dependency androidx.media:media to v1.8.0 2026-05-06 20:08:16 +00:00
renovate[bot] e3a325f568 chore(deps): update agp to v9.2.1 2026-05-05 17:45:30 +00:00
Michachatz b537df898b Merge pull request #69 from Michatec/renovate/freedroidwarn
fix(deps): update dependency com.github.woheller69:freedroidwarn to v1.12
2026-05-01 13:50:50 +02:00
Michachatz 61675601f3 Merge pull request #68 from Michatec/renovate/gradle-9.x
chore(deps): update gradle to v9.5.0
2026-05-01 13:48:43 +02:00
renovate[bot] 6dc5c47b86 fix(deps): update dependency com.github.woheller69:freedroidwarn to v1.12 2026-04-30 21:46:44 +00:00
renovate[bot] c40ad0cc4a chore(deps): update gradle to v9.5.0 2026-04-28 15:17:44 +00:00
Michachatz 066206c6dc Merge pull request #67 from Michatec/renovate/gson
fix(deps): update dependency com.google.code.gson:gson to v2.14.0
2026-04-26 14:48:57 +02:00
renovate[bot] e8e66c24ef fix(deps): update dependency com.google.code.gson:gson to v2.14.0 2026-04-23 21:10:57 +00:00
Michachatz 56647e7f02 Merge pull request #66 from Michatec/renovate/kotlin-monorepo
chore(deps): update dependency org.jetbrains.kotlin.android to v2.3.21
2026-04-23 17:57:41 +02:00
renovate[bot] a7e0efc913 chore(deps): update dependency org.jetbrains.kotlin.android to v2.3.21 2026-04-23 09:56:51 +00:00
Michachatz 0569bed475 Merge pull request #65 from Michatec/renovate/navigation
fix(deps): update navigation to v2.9.8
2026-04-23 11:52:21 +02:00
renovate[bot] 6e3b187b56 fix(deps): update navigation to v2.9.8 2026-04-22 21:41:22 +00:00
Michachatz c8c0d1783b Merge pull request #64 from Michatec/renovate/agp
chore(deps): update agp to v9.2.0
2026-04-22 06:25:14 +02:00
Michachatz 4974514a81 refactor(ui): Change from normal switch to marquee switches 2026-04-22 06:22:31 +02:00
renovate[bot] afd34c6485 chore(deps): update agp to v9.2.0 2026-04-21 20:38:52 +00:00
30 changed files with 340 additions and 72 deletions
+9
View File
@@ -105,6 +105,15 @@ When **Edit Stations** is enabled:
</details>
----------------------------------------
<details>
<summary>⭐ Star History</summary>
[![Star History Chart](https://api.star-history.com/chart?repos=michatec/radio&type=date&legend=top-left)](https://www.star-history.com/?repos=michatec%2Fradio&type=date&legend=top-left)
</details>
<div align="right">
<table><td>
<a href="#start-of-content">↥ Scroll to top</a>
+6 -4
View File
@@ -5,14 +5,14 @@ plugins {
android {
namespace = "com.michatec.radio"
compileSdk = 36
compileSdk = 37
defaultConfig {
applicationId = "com.michatec.radio"
minSdk = 28
targetSdk = 36
versionCode = 145
versionName = "14.5"
targetSdk = 37
versionCode = 146
versionName = "14.6"
}
compileOptions {
@@ -31,6 +31,7 @@ android {
isCrunchPngs = false
proguardFiles.addAll(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), file("proguard-rules.pro")))
applicationIdSuffix = ".debug"
buildConfigField("boolean", "IS_DEBUG_ENABLED", "true")
}
release {
@@ -38,6 +39,7 @@ android {
isShrinkResources = true
isCrunchPngs = true
proguardFiles.addAll(listOf(getDefaultProguardFile("proguard-android-optimize.txt"), file("proguard-rules.pro")))
buildConfigField("boolean", "IS_DEBUG_ENABLED", "false")
}
}
+5 -9
View File
@@ -9,10 +9,12 @@
android:required="false" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"
tools:ignore="ForegroundServicesPolicy" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<application
android:name=".Radio"
@@ -48,6 +50,7 @@
<activity
android:name=".ExpandedControllerActivity"
android:exported="false"
android:theme="@style/CustomCastExpandedControllerStyle"
android:launchMode="singleTask" />
<!-- Main activity for radio station playback on phone and TV -->
@@ -136,6 +139,7 @@
<intent-filter>
<action android:name="androidx.media3.session.MediaSessionService" />
<action android:name="android.media.browse.MediaBrowserService" />
<action android:name="android.intent.action.MEDIA_BUTTON" />
<action android:name="com.michatec.radio.action.START_PLAYER_SERVICE" />
</intent-filter>
</service>
@@ -148,14 +152,6 @@
</intent-filter>
</receiver>
<receiver
android:name="androidx.media.session.MediaButtonReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.provider"
@@ -120,7 +120,7 @@ class AddStationFragment : Fragment(),
if (searchEditText != null) {
searchEditText.requestFocus()
val imm = requireContext().getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInput(searchEditText, InputMethodManager.SHOW_IMPLICIT)
imm.showSoftInput(searchEditText, 0)
}
}
}
@@ -1,5 +1,7 @@
package com.michatec.radio
import android.Manifest
import android.os.Build
import android.content.Context
import android.content.SharedPreferences
import android.content.pm.PackageManager
@@ -13,6 +15,8 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.core.view.isVisible
import androidx.navigation.fragment.NavHostFragment
import androidx.activity.result.contract.ActivityResultContracts
import com.google.android.material.snackbar.Snackbar
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.NavigationUI
import androidx.navigation.ui.navigateUp
@@ -31,6 +35,24 @@ class MainActivity : AppCompatActivity() {
/* Main class variables */
private lateinit var appBarConfiguration: AppBarConfiguration
// Check if the device running the app is an Android TV instance
private val isAndroidTV: Boolean by lazy {
packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)
}
// request notification permission (for Android 13+)
private val permissionLauncher = registerForActivityResult(
ActivityResultContracts.RequestPermission()
) { isGranted ->
if (!isGranted) {
Snackbar.make(
findViewById(android.R.id.content),
R.string.snackbar_failed_permission_notification,
Snackbar.LENGTH_LONG
).show()
}
}
/* Overrides attachBaseContext from AppCompatActivity */
override fun attachBaseContext(newBase: Context) {
val languageCode = PreferencesHelper.loadSelectedLanguage()
@@ -72,7 +94,7 @@ class MainActivity : AppCompatActivity() {
supportActionBar?.hide()
// TV-specific loading logic: Hide the overlay once the app is ready
if (packageManager.hasSystemFeature(PackageManager.FEATURE_LEANBACK)) {
if (isAndroidTV) {
Handler(Looper.getMainLooper()).postDelayed({
hideLoadingOverlay()
}, 1200)
@@ -82,6 +104,11 @@ class MainActivity : AppCompatActivity() {
// register listener for changes in shared preferences
PreferencesHelper.registerPreferenceChangeListener(sharedPreferenceChangeListener)
// request permissions
if (!isAndroidTV && Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
permissionLauncher.launch(Manifest.permission.POST_NOTIFICATIONS)
}
}
/* Hides the loading/splash overlay */
@@ -0,0 +1,63 @@
package com.michatec.radio
import androidx.core.app.NotificationCompat
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import com.michatec.radio.R
object NotificationSys {
private const val CHANNEL_ID = "com.michatec.radio.channel"
private const val CHANNEL_NAME = "Notifications"
private const val NOTIFICATION_ID = 1001
fun createNotificationChannel(context: Context) {
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
if (notificationManager.getNotificationChannel(CHANNEL_ID) == null) {
val channel = NotificationChannel(
CHANNEL_ID,
CHANNEL_NAME,
NotificationManager.IMPORTANCE_DEFAULT
).apply {
description = context.getString(R.string.notification_channel_description)
}
notificationManager.createNotificationChannel(channel)
}
}
fun showNotification(context: Context, title: String, content: String, intent: Intent? = null) {
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
createNotificationChannel(context)
val targetIntent = intent ?: Intent(context, MainActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP
}
val pendingIntent = PendingIntent.getActivity(
context,
0,
targetIntent,
PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
)
val notification = NotificationCompat.Builder(context, CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification_app_icon_white_24dp)
.setContentTitle(title)
.setContentText(content)
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
.setContentIntent(pendingIntent)
.setAutoCancel(true)
.build()
notificationManager.notify(NOTIFICATION_ID, notification)
}
fun showNotification(context: Context, titleResId: Int, contentResId: Int, intent: Intent? = null) {
val title = context.getString(titleResId)
val content = context.getString(contentResId)
showNotification(context, title, content, intent)
}
}
@@ -60,6 +60,7 @@ import com.michatec.radio.extensions.*
import com.michatec.radio.helpers.*
import com.michatec.radio.ui.LayoutHolder
import com.michatec.radio.ui.PlayerState
import com.michatec.radio.BuildConfig
import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.Dispatchers.Main
@@ -95,6 +96,11 @@ class PlayerFragment : Fragment(),
private var tempStationUuid: String = String()
private var itemTouchHelper: ItemTouchHelper? = null
// Check if the device running the app is an Android TV instance
private val isAndroidTV: Boolean by lazy {
context?.packageManager?.hasSystemFeature(PackageManager.FEATURE_LEANBACK) == true
}
/* Overrides onCreate from Fragment */
override fun onCreate(savedInstanceState: Bundle?) {
@@ -831,7 +837,7 @@ class PlayerFragment : Fragment(),
} else {
activity?.packageManager?.getPackageInfo(requireActivity().packageName, 0)?.versionName
}
if (latestVersion != current) {
if (latestVersion != current && !BuildConfig.IS_DEBUG_ENABLED) {
// We have an update available, tell our user about it
view?.let {
Snackbar.make(it, getString(R.string.app_name) + " " + latestVersion + " " + getString(R.string.snackbar_update_available), 10000)
@@ -849,6 +855,22 @@ class PlayerFragment : Fragment(),
R.color.default_neutral_white))
.show()
}
if (!isAndroidTV) {
val releaseUrl = getString(R.string.snackbar_url_app_home_page)
// Create the clean browser intent that will trigger ONLY when the notification is tapped
val updateIntent = Intent(Intent.ACTION_VIEW, Uri.parse(releaseUrl)).apply {
putExtra("SOURCE", "SELF")
}
NotificationSys.showNotification(
requireContext(),
"${getString(R.string.app_name)} $latestVersion",
getString(R.string.snackbar_update_available),
intent = updateIntent
)
}
}
}, { error ->
Log.w(TAG, "Update check failed", error)
@@ -9,7 +9,6 @@ import android.os.Bundle
import android.os.CountDownTimer
import android.util.Log
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import androidx.media.MediaBrowserServiceCompat.BrowserRoot.EXTRA_RECENT
import androidx.media3.cast.CastPlayer
import androidx.media3.common.*
import androidx.media3.common.util.UnstableApi
@@ -29,6 +28,7 @@ import com.google.common.collect.ImmutableList
import com.google.common.util.concurrent.Futures
import com.google.common.util.concurrent.ListenableFuture
import com.michatec.radio.core.Collection
import com.michatec.radio.core.Station
import com.michatec.radio.helpers.*
import kotlinx.coroutines.*
import kotlinx.coroutines.Dispatchers.Main
@@ -132,7 +132,7 @@ class PlayerService : MediaLibraryService(), SharedPreferences.OnSharedPreferenc
context: Context,
enableFloatOutput: Boolean,
enableAudioTrackPlaybackParams: Boolean
): AudioSink? {
): AudioSink {
return DefaultAudioSink.Builder(context)
.setAudioProcessors(arrayOf(nativeAudioProcessor))
.build()
@@ -170,6 +170,14 @@ class PlayerService : MediaLibraryService(), SharedPreferences.OnSharedPreferenc
override fun getDuration(): Long {
return C.TIME_UNSET // this will hide progress bar for HLS stations in the notification
}
override fun seekToNext() {
playNextStation()
}
override fun seekToPrevious() {
playPreviousStation()
}
}
player.addListener(playerListener)
}
@@ -347,6 +355,37 @@ class PlayerService : MediaLibraryService(), SharedPreferences.OnSharedPreferenc
}
/* Switches to the next radio station in collection */
private fun playNextStation() {
val currentMediaId = player.currentMediaItem?.mediaId ?: PreferencesHelper.loadLastPlayedStationUuid()
val currentPosition = CollectionHelper.getStationPosition(collection, currentMediaId)
if (currentPosition != -1) {
val nextPosition = if (currentPosition < collection.stations.size - 1) currentPosition + 1 else 0
playStation(collection.stations[nextPosition])
}
}
/* Switches to the previous radio station in collection */
private fun playPreviousStation() {
val currentMediaId = player.currentMediaItem?.mediaId ?: PreferencesHelper.loadLastPlayedStationUuid()
val currentPosition = CollectionHelper.getStationPosition(collection, currentMediaId)
if (currentPosition != -1) {
val previousPosition = if (currentPosition > 0) currentPosition - 1 else collection.stations.size - 1
playStation(collection.stations[previousPosition])
}
}
/* Starts playback of a radio station */
private fun playStation(station: Station) {
val mediaItem = CollectionHelper.buildMediaItem(this, station)
player.setMediaItem(mediaItem)
player.prepare()
player.play()
}
/*
* Custom MediaSession Callback that handles player commands
*/
@@ -407,8 +446,8 @@ class PlayerService : MediaLibraryService(), SharedPreferences.OnSharedPreferenc
browser: MediaSession.ControllerInfo,
params: LibraryParams?
): ListenableFuture<LibraryResult<MediaItem>> {
return if (params?.extras?.containsKey(EXTRA_RECENT) == true) {
// special case: system requested media resumption via EXTRA_RECENT
return if (params?.isRecent == true) {
// special case: system requested media resumption via isRecent
playLastStation = true
Futures.immediateFuture(LibraryResult.ofItem(CollectionHelper.getRecent(this@PlayerService, collection), params))
} else {
@@ -552,8 +591,7 @@ class PlayerService : MediaLibraryService(), SharedPreferences.OnSharedPreferenc
stopSelf()
}
Player.STATE_READY -> {
// Playback is paused. For radio, we can stop the service to remove the notification.
stopSelf()
// Playback is paused. For radio, we keep the service running to allow resumption from headphones.
}
Player.STATE_BUFFERING -> {
// DO NOT stop the service while buffering (especially important for Cast)
@@ -562,17 +600,6 @@ class PlayerService : MediaLibraryService(), SharedPreferences.OnSharedPreferenc
}
}
override fun onPlayWhenReadyChanged(playWhenReady: Boolean, reason: Int) {
super.onPlayWhenReadyChanged(playWhenReady, reason)
if (!playWhenReady) {
// Only stop if not buffering and not ready to play (i.e. truly stopped/paused)
if (player.playbackState != Player.STATE_BUFFERING) {
stopSelf()
}
}
}
override fun onPlayerError(error: PlaybackException) {
super.onPlayerError(error)
Log.d(TAG, "PlayerError occurred: ${error.errorCodeName}")
@@ -22,6 +22,8 @@ import com.michatec.radio.dialogs.PresetSelectionDialog
import com.michatec.radio.dialogs.ThemeSelectionDialog
import com.michatec.radio.dialogs.YesNoDialog
import com.michatec.radio.helpers.*
import com.michatec.radio.NotificationSys
import android.content.pm.PackageManager
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers.IO
import kotlinx.coroutines.launch
@@ -38,6 +40,11 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
/* Define log tag */
private val TAG: String = SettingsFragment::class.java.simpleName
// Check if the device running the app is an Android TV instance
private val isAndroidTV: Boolean by lazy {
context?.packageManager?.hasSystemFeature(PackageManager.FEATURE_LEANBACK) == true
}
/* Overrides onViewCreated from PreferenceFragmentCompat */
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
@@ -149,7 +156,7 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
// set up "Buffer Size" preference
val preferenceBufferSize = SwitchPreferenceCompat(activity as Context)
val preferenceBufferSize = MarqueeSwitchPreference(context)
preferenceBufferSize.title = getString(R.string.pref_buffer_size_title)
preferenceBufferSize.setIcon(R.drawable.ic_network_check_24dp)
preferenceBufferSize.key = Keys.PREF_LARGE_BUFFER_SIZE
@@ -159,7 +166,7 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
// set up "Edit Stream Address" preference
val preferenceEnableEditingStreamUri = SwitchPreferenceCompat(activity as Context)
val preferenceEnableEditingStreamUri = MarqueeSwitchPreference(context)
preferenceEnableEditingStreamUri.title = getString(R.string.pref_edit_station_stream_title)
preferenceEnableEditingStreamUri.setIcon(R.drawable.ic_music_note_24dp)
preferenceEnableEditingStreamUri.key = Keys.PREF_EDIT_STREAMS_URIS
@@ -174,7 +181,7 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
// set up "Edit Stations" preference
val preferenceEnableEditingGeneral = SwitchPreferenceCompat(activity as Context)
val preferenceEnableEditingGeneral = MarqueeSwitchPreference(context)
preferenceEnableEditingGeneral.title = getString(R.string.pref_edit_station_title)
preferenceEnableEditingGeneral.setIcon(R.drawable.ic_edit_24dp)
preferenceEnableEditingGeneral.key = Keys.PREF_EDIT_STATIONS
@@ -309,6 +316,36 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
return@setOnPreferenceClickListener true
}
// set up "Test Notification" preference
val preferenceTestNotification = Preference(context)
preferenceTestNotification.title = getString(R.string.pref_test_notification_title)
preferenceTestNotification.setIcon(R.drawable.ic_notification_app_icon_24dp)
preferenceTestNotification.summary = getString(R.string.pref_test_notification_summary)
preferenceTestNotification.setOnPreferenceClickListener {
// show test notification
NotificationSys.showNotification(
context,
getString(R.string.pref_test_notification_title),
getString(R.string.notification_test_content)
)
return@setOnPreferenceClickListener true
}
// set up "Security" preference
val preferenceSecurity = Preference(context)
preferenceSecurity.title = getString(R.string.pref_security_title)
preferenceSecurity.setIcon(R.drawable.ic_security_24dp)
preferenceSecurity.summary = getString(R.string.pref_security_summary)
preferenceSecurity.setOnPreferenceClickListener {
// open web browser
val intent = Intent().apply {
action = Intent.ACTION_VIEW
data = "https://github.com/michatec/Radio/blob/master/SECURITY.md".toUri()
}
startActivity(intent)
return@setOnPreferenceClickListener true
}
val preferenceLanguageSelection = Preference(context)
preferenceLanguageSelection.title = getString(R.string.pref_language_selection_title)
preferenceLanguageSelection.setIcon(R.drawable.ic_language_24dp)
@@ -349,6 +386,10 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
preferenceCategoryGeneral.addPreference(preferenceThemeSelection)
preferenceCategoryGeneral.addPreference(preferenceLanguageSelection)
if (!isAndroidTV) {
preferenceCategoryGeneral.addPreference(preferenceTestNotification)
}
screen.addPreference(preferenceCategoryAudioEffects)
preferenceCategoryAudioEffects.addPreference(preferenceBassBoost)
preferenceCategoryAudioEffects.addPreference(preferenceReverb)
@@ -375,6 +416,7 @@ class SettingsFragment : PreferenceFragmentCompat(), YesNoDialog.YesNoDialogList
screen.addPreference(preferenceCategoryLinks)
preferenceCategoryLinks.addPreference(preferenceGitHub)
preferenceCategoryLinks.addPreference(preferenceLicense)
preferenceCategoryLinks.addPreference(preferenceSecurity)
preferenceScreen = screen
}
@@ -11,6 +11,7 @@ import android.widget.FrameLayout
import androidx.preference.Preference
import androidx.preference.PreferenceViewHolder
import com.michatec.radio.R
import androidx.core.view.isEmpty
class ExtrasHelper {
companion object {
@@ -69,7 +70,7 @@ class ExtrasHelper {
if (currentParent != container) {
currentParent?.removeView(visualizerView)
// If we injected into a standard preference, don't clear everything, just add
if (container is FrameLayout || container.childCount == 0) {
if (container is FrameLayout || container.isEmpty()) {
container.removeAllViews()
}
container.addView(visualizerView)
@@ -2,7 +2,6 @@ package com.michatec.radio.helpers
import android.app.Activity
import android.content.Context
import android.content.res.Configuration
import android.util.Log
import com.michatec.radio.R
import java.util.Locale
@@ -16,7 +16,7 @@ class MarqueeSwitchPreference(context: Context) : SwitchPreferenceCompat(context
val title = holder.findViewById(android.R.id.title) as? TextView
title?.apply {
ellipsize = TextUtils.TruncateAt.MARQUEE
setSingleLine(true)
isSingleLine = true
marqueeRepeatLimit = -1 // Repeat indefinitely
isSelected = true // Required for marquee to start
setHorizontallyScrolling(true)
@@ -171,7 +171,7 @@ class SearchResultAdapter(
context: Context,
enableFloatOutput: Boolean,
enableAudioTrackPlaybackParams: Boolean
): AudioSink? {
): AudioSink {
return DefaultAudioSink.Builder(context)
.setAudioProcessors(arrayOf(nativeAudioProcessor))
.build()
File diff suppressed because one or more lines are too long
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/icon_default"
android:pathData="M12,1L3,5v6c0,5.55 3.84,10.74 9,12c5.16-1.26 9-6.45 9-12V5l-9,-4z"/>
</vector>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Stop</string>
<string name="notification_skip_to_previous">Forrige</string>
<string name="notification_skip_to_next">Næste</string>
<string name="notification_test_content">Dette er en testmeddelelse.</string>
<string name="notification_channel_description">Alle meddelelser om appen.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Fordyb dig i lyden du elsker!</string>
<string name="onboarding_app_get_started">Kom i gang</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">App-tema</string>
<string name="pref_update_station_images_summary">Download nyeste stationsbilleder.</string>
<string name="pref_update_station_images_title">Opdater stationsbilleder</string>
<string name="pref_test_notification_title">Testmeddelelse</string>
<string name="pref_test_notification_summary">Test om meddelelsessystemet virker.</string>
<!-- App-genveje -->
<string name="shortcut_last_station_disabled_message">Genvej til seneste station er deaktiveret.</string>
<string name="shortcut_last_station_long_label">Afspil seneste station</string>
@@ -111,6 +115,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Vis</string>
<string name="snackbar_update_available">er tilgængelig!</string>
<string name="snackbar_failed_permission_notification">Kunne ikke anmode om meddelelsestilladelse.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Sprog</string>
<string name="pref_language_selection_summary">Aktuelt sprog</string>
@@ -123,6 +128,8 @@
<string name="pref_audio_effects_title">Lydeffekter</string>
<string name="pref_bass_boost_title">Bas-forstærkning</string>
<string name="pref_bass_boost_summary">Øg basforstærkningen.</string>
<string name="pref_security_title">Sikkerhed</string>
<string name="pref_security_summary">Lær mere om sikkerheden for denne applikation</string>
<string name="pref_reverb_title">Hall</string>
<string name="pref_reverb_summary">Juster hall-blanding.</string>
<string name="pref_drc_title">Dynamisk rækkeviddekomprimering</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Stopp</string>
<string name="notification_skip_to_previous">Zurück</string>
<string name="notification_skip_to_next">Nächste</string>
<string name="notification_test_content">Dies ist eine Testbenachrichtigung.</string>
<string name="notification_channel_description">Alle Benachrichtigungen über die App.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Tauche ein in den Sound deiner Wahl!</string>
<string name="onboarding_app_get_started">Jetzt starten</string>
@@ -93,6 +95,8 @@
<string name="pref_theme_selection_title">App-Design</string>
<string name="pref_update_station_images_summary">Die neueste Version aller Senderbilder herunterladen.</string>
<string name="pref_update_station_images_title">Senderbilder aktualisieren</string>
<string name="pref_test_notification_title">Test-Benachrichtigung</string>
<string name="pref_test_notification_summary">Testen, ob das Benachrichtigungssystem funktioniert.</string>
<!-- Sample Text -->
<!-- App Shortcuts -->
<string name="shortcut_last_station_disabled_message">Verknüpfung für Wiedergabe des letzten Senders deaktiviert.</string>
@@ -122,10 +126,13 @@
<!-- Snackbars -->
<string name="snackbar_show">Zeigen</string>
<string name="snackbar_update_available">ist verfügbar!</string>
<string name="snackbar_failed_permission_notification">Fehler bei der Anfrage nach Benachrichtigungsberechtigung.</string>
<string name="pref_audio_effects_title">Audio-Effekte</string>
<string name="pref_bass_boost_title">Bass-Boost</string>
<string name="pref_bass_boost_summary">Erhöhen Sie die Bassverstärkung.</string>
<string name="pref_reverb_title">Hall</string>
<string name="pref_security_title">Sicherheit</string>
<string name="pref_security_summary">Erfahren Sie mehr über die Sicherheit dieser Anwendung</string>
<string name="pref_reverb_summary">Reverb-Mix anpassen.</string>
<string name="pref_drc_title">Dynamikkompression</string>
<string name="pref_drc_summary">Den Dynamikbereich für eine gleichbleibende Lautstärke komprimieren.</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Διακοπή</string>
<string name="notification_skip_to_previous">Προηγούμενο</string>
<string name="notification_skip_to_next">Επόμενο</string>
<string name="notification_test_content">Αυτή είναι μια δοκιμαστική ειδοποίηση.</string>
<string name="notification_channel_description">Όλες οι ειδοποιήσεις σχετικά με την εφαρμογή.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Βυθιστείτε στον ήχο της επιλογής σας!</string>
<string name="onboarding_app_get_started">Ας ξεκινήσουμε</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">Θέμα Εφαρμογής</string>
<string name="pref_update_station_images_summary">Κατεβάστε την τελευταία έκδοση των εικόνων όλων των σταθμών.</string>
<string name="pref_update_station_images_title">Ενημέρωση Εικόνων Σταθμών</string>
<string name="pref_test_notification_title">Δοκιμαστική Ειδοποίηση</string>
<string name="pref_test_notification_summary">Έλεγχος αν το σύστημα ειδοποιήσεων λειτουργεί.</string>
<!-- Sample Text -->
<!-- App Shortcuts -->
<string name="shortcut_last_station_disabled_message">Η συντόμευση για την αναπαραγωγή του τελευταίου σταθμού έχει απενεργοποιηθεί.</string>
@@ -113,6 +117,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Εμφάνισε</string>
<string name="snackbar_update_available">είναι διαθέσιμη!</string>
<string name="snackbar_failed_permission_notification">Απέτυχε η αίτηση δικαιώματος ειδοποίησης.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Γλώσσα</string>
<string name="pref_language_selection_summary">Τρέχουσα γλώσσα</string>
@@ -123,6 +128,8 @@
<string name="dialog_yes_no_message_update_collection">Κατεβάστε την τελευταία έκδοση όλων των σταθμών;</string>
<string name="dialog_yes_no_positive_button_update_collection">Ενημέρωση</string>
<string name="pref_audio_effects_title">Ηχητικά Εφέ</string>
<string name="pref_security_title">Ασφάλεια</string>
<string name="pref_security_summary">Μάθετε περισσότερα για την ασφάλεια αυτής της εφαρμογής</string>
<string name="pref_bass_boost_title">Ενίσχυση Μπάσων</string>
<string name="pref_bass_boost_summary">Αύξηση της ενίσχυσης μπάσων.</string>
<string name="pref_reverb_title">Αντήχηση</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Arrêt</string>
<string name="notification_skip_to_previous">Précédent</string>
<string name="notification_skip_to_next">Suivant</string>
<string name="notification_test_content">Il sagit dune notification de test.</string>
<string name="notification_channel_description">Toutes les notifications de lapplication.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Plongez dans le son de votre choix !</string>
<string name="onboarding_app_get_started">Commencer maintenant</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">Thème de lapplication</string>
<string name="pref_update_station_images_summary">Télécharger la dernière version de toutes les images des stations.</string>
<string name="pref_update_station_images_title">Mettre à jour les images des stations</string>
<string name="pref_test_notification_title">Notification de test</string>
<string name="pref_test_notification_summary">Tester si le système de notification fonctionne.</string>
<!-- Raccourcis de l'app -->
<string name="shortcut_last_station_disabled_message">Raccourci pour lire la dernière station désactivé.</string>
<string name="shortcut_last_station_long_label">Lire la dernière station</string>
@@ -111,6 +115,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Afficher</string>
<string name="snackbar_update_available">est disponible !</string>
<string name="snackbar_failed_permission_notification">Échec de la demande dautorisation de notification.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Langue</string>
<string name="pref_language_selection_summary">Langue actuelle</string>
@@ -123,6 +128,8 @@
<string name="pref_audio_effects_title">Effets Audio</string>
<string name="pref_bass_boost_title">Amplification des basses</string>
<string name="pref_bass_boost_summary">Augmenter l amplification des basses.</string>
<string name="pref_security_title">Sécurité</string>
<string name="pref_security_summary">En savoir plus sur la sécurité de cette application</string>
<string name="pref_reverb_title">Réverbération</string>
<string name="pref_reverb_summary">Ajuster le mix de réverbération.</string>
<string name="pref_drc_title">Compression Dynamique</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">停止</string>
<string name="notification_skip_to_previous">前へ</string>
<string name="notification_skip_to_next">次へ</string>
<string name="notification_test_content">テスト通知です。</string>
<string name="notification_channel_description">アプリに関するすべての通知。</string>
<!-- オンボーディング -->
<string name="onboarding_app_description">お気に入りのサウンドの世界に飛び込もう!</string>
<string name="onboarding_app_get_started">今すぐ始める</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">アプリテーマ</string>
<string name="pref_update_station_images_summary">すべての局画像を最新に更新します。</string>
<string name="pref_update_station_images_title">局画像を更新</string>
<string name="pref_test_notification_title">テスト通知</string>
<string name="pref_test_notification_summary">通知システムが動作するかテストします。</string>
<!-- ショートカット -->
<string name="shortcut_last_station_disabled_message">最後に再生した局のショートカットは無効になっています。</string>
<string name="shortcut_last_station_long_label">最後の局を再生</string>
@@ -112,6 +116,7 @@
<!-- スナックバー -->
<string name="snackbar_show">表示</string>
<string name="snackbar_update_available">が利用可能です!</string>
<string name="snackbar_failed_permission_notification">通知の権限リクエストに失敗しました。</string>
<!-- 言語選択 -->
<string name="pref_language_selection_title">言語</string>
<string name="pref_language_selection_summary">現在の言語</string>
@@ -123,6 +128,8 @@
<string name="dialog_yes_no_positive_button_update_collection">更新</string>
<string name="pref_audio_effects_title">オーディオエフェクト</string>
<string name="pref_bass_boost_title">バスブースト</string>
<string name="pref_security_title">セキュリティ</string>
<string name="pref_security_summary">このアプリケーションのセキュリティについて詳しく知る</string>
<string name="pref_bass_boost_summary">低音を増強します。</string>
<string name="pref_reverb_title">リバーブ</string>
<string name="pref_reverb_summary">リバーブミスを調整します。</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Stoppen</string>
<string name="notification_skip_to_previous">Vorige</string>
<string name="notification_skip_to_next">Volgende</string>
<string name="notification_test_content">Dit is een testmelding.</string>
<string name="notification_channel_description">Alle meldingen over de app.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Dompel jezelf onder in het geluid van je keuze!</string>
<string name="onboarding_app_get_started">Aan de slag</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">App Thema</string>
<string name="pref_update_station_images_summary">Download de laatste versie van alle zenderafbeeldingen.</string>
<string name="pref_update_station_images_title">Update Zenderafbeeldingen</string>
<string name="pref_test_notification_title">Testmelding</string>
<string name="pref_test_notification_summary">Test of het meldingsysteem werkt.</string>
<!-- Sample Text -->
<!-- App Shortcuts -->
<string name="shortcut_last_station_disabled_message">Snelkoppeling voor het afspelen van de laatste zender uitgeschakeld.</string>
@@ -113,6 +117,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Weergeven</string>
<string name="snackbar_update_available">is beschikbaar!</string>
<string name="snackbar_failed_permission_notification">Kan notificatierechtiging niet aanvragen.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Taal</string>
<string name="pref_language_selection_summary">Huidige taal</string>
@@ -123,6 +128,8 @@
<string name="dialog_yes_no_message_update_collection">Download de laatste versie van alle zenders?</string>
<string name="dialog_yes_no_positive_button_update_collection">Bijwerken</string>
<string name="pref_audio_effects_title">Audio Effecten</string>
<string name="pref_security_title">Securiteit</string>
<string name="pref_security_summary">Meer informatie over de beveiliging van deze toepassing</string>
<string name="pref_bass_boost_title">Bass Boost</string>
<string name="pref_bass_boost_summary">Verhoog de bassversterking.</string>
<string name="pref_reverb_title">Reverb</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Zatrzymaj</string>
<string name="notification_skip_to_previous">Poprzedni</string>
<string name="notification_skip_to_next">Następny</string>
<string name="notification_test_content">To jest powiadomienie testowe.</string>
<string name="notification_channel_description">Wszystkie powiadomienia o aplikacji.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Zanurz się w dźwięku swojego wyboru!</string>
<string name="onboarding_app_get_started">Zaczynamy</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">Motyw aplikacji</string>
<string name="pref_update_station_images_summary">Pobierz najnowszą wersję wszystkich obrazów stacji w swojej kolekcji.</string>
<string name="pref_update_station_images_title">Aktualizuj zdjęcia stacji</string>
<string name="pref_test_notification_title">Testowe powiadomienie</string>
<string name="pref_test_notification_summary">Sprawdź, czy system powiadomień działa.</string>
<!-- Sample Text -->
<!-- App Shortcuts -->
<string name="shortcut_last_station_disabled_message">Skrót do odtwarzania ostatniej stacji jest wyłączony.</string>
@@ -113,6 +117,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Wyświetl</string>
<string name="snackbar_update_available">jest dostępna!</string>
<string name="snackbar_failed_permission_notification">Nie udało się poprosić o pozwolenie na powiadomienia.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Język</string>
<string name="pref_language_selection_summary">Aktualny język</string>
@@ -123,6 +128,8 @@
<string name="dialog_yes_no_message_update_collection">Pobrać najnowszą wersję wszystkich stacji?</string>
<string name="dialog_yes_no_positive_button_update_collection">Aktualizuj</string>
<string name="pref_audio_effects_title">Efekty Dźwiękowe</string>
<string name="pref_security_title">Bezpieczeństwo</string>
<string name="pref_security_summary">Dowiedz się więcej o bezpieczeństwie tej aplikacji</string>
<string name="pref_bass_boost_title">Wzmocnienie Basów</string>
<string name="pref_bass_boost_summary">Zwiększ wzmocnienie basów.</string>
<string name="pref_reverb_title">Pogłos</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Остановить</string>
<string name="notification_skip_to_previous">Предыдущий</string>
<string name="notification_skip_to_next">Следующий</string>
<string name="notification_test_content">Это тестовое уведомление.</string>
<string name="notification_channel_description">Все уведомления о приложении.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Погрузитесь в звук по вашему выбору!</string>
<string name="onboarding_app_get_started">Начать</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">Тема приложения</string>
<string name="pref_update_station_images_summary">Скачать последнюю версию всех изображений станций.</string>
<string name="pref_update_station_images_title">Обновить изображения станций</string>
<string name="pref_test_notification_title">Тест уведомления</string>
<string name="pref_test_notification_summary">Проверить, работает ли система уведомлений.</string>
<!-- Sample Text -->
<!-- App Shortcuts -->
<string name="shortcut_last_station_disabled_message">Ярлык для воспроизведения последней станции отключён.</string>
@@ -113,6 +117,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Показать</string>
<string name="snackbar_update_available">доступно!</string>
<string name="snackbar_failed_permission_notification">Не удалось запросить разрешение на уведомления.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Язык</string>
<string name="pref_language_selection_summary">Текущий язык</string>
@@ -123,6 +128,8 @@
<string name="dialog_yes_no_message_update_collection">Скачать последнюю версию всех станций?</string>
<string name="dialog_yes_no_positive_button_update_collection">Обновить</string>
<string name="pref_audio_effects_title">Звуковые эффекты</string>
<string name="pref_security_title">Безопасность</string>
<string name="pref_security_summary">Узнать больше о безопасности этого приложения</string>
<string name="pref_bass_boost_title">Усиление басов</string>
<string name="pref_bass_boost_summary">Увеличить усиление басов.</string>
<string name="pref_reverb_title">Реверберация</string>
+7
View File
@@ -44,6 +44,8 @@
<string name="notification_stop">Зупинити</string>
<string name="notification_skip_to_previous">Попередня</string>
<string name="notification_skip_to_next">Наступна</string>
<string name="notification_test_content">Це тестове сповіщення.</string>
<string name="notification_channel_description">Усі сповіщення про застосунок.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Пориньте у звук на ваш вибір!</string>
<string name="onboarding_app_get_started">Початок роботи</string>
@@ -84,6 +86,8 @@
<string name="pref_theme_selection_title">Тема застосунку</string>
<string name="pref_update_station_images_summary">Завантажити останню версію всіх зображень станцій.</string>
<string name="pref_update_station_images_title">Оновити зображення станцій</string>
<string name="pref_test_notification_title">Тестове сповіщення</string>
<string name="pref_test_notification_summary">Перевірити, чи працює система сповіщень.</string>
<!-- Sample Text -->
<!-- App Shortcuts -->
<string name="shortcut_last_station_disabled_message">Ярлик для відтворення останньої станції вимкнено.</string>
@@ -113,6 +117,7 @@
<!-- Snackbars -->
<string name="snackbar_show">Показати</string>
<string name="snackbar_update_available">доступне!</string>
<string name="snackbar_failed_permission_notification">Не вдалося запитати дозвіл на сповіщення.</string>
<!-- Language Selection -->
<string name="pref_language_selection_title">Мова</string>
<string name="pref_language_selection_summary">Поточна мова</string>
@@ -123,6 +128,8 @@
<string name="dialog_yes_no_message_update_collection">Завантажити останню версію всіх станцій?</string>
<string name="dialog_yes_no_positive_button_update_collection">Оновити</string>
<string name="pref_audio_effects_title">Звукові ефекти</string>
<string name="pref_security_title">Безпека</string>
<string name="pref_security_summary">Дізнайтеся більше про безпеку цього додатку</string>
<string name="pref_bass_boost_title">Підсилення басів</string>
<string name="pref_bass_boost_summary">Збільшити підсилення басів.</string>
<string name="pref_reverb_title">Реверберація</string>
+8 -1
View File
@@ -2,6 +2,7 @@
<resources>
<!-- App Name -->
<string name="app_version_name" translatable="false">\"Red\"</string>
<string name="app_name" translatable="false">Radio</string>
<!-- Accessibility Descriptions -->
<string name="descr_app_icon">App icon depicting an old radio</string>
@@ -49,6 +50,8 @@
<string name="notification_stop">Stop</string>
<string name="notification_skip_to_previous">Previous</string>
<string name="notification_skip_to_next">Next</string>
<string name="notification_test_content">This is a test notification.</string>
<string name="notification_channel_description">All notifications about the app.</string>
<!-- Onboarding -->
<string name="onboarding_app_description">Immerse yourself in the sound of your choice!</string>
@@ -124,6 +127,8 @@
<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 GPLv3 License</string>
<string name="pref_security_title">Security</string>
<string name="pref_security_summary">Learn more about the security of this application</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>
@@ -141,6 +146,8 @@
<string name="pref_theme_selection_title">App Theme</string>
<string name="pref_update_station_images_summary">Download latest version of all station images.</string>
<string name="pref_update_station_images_title">Update Station Images</string>
<string name="pref_test_notification_title">Test Notification</string>
<string name="pref_test_notification_summary">Test whether the notification system works.</string>
<!-- Sample Text -->
<string name="sample_text_sleep_timer_remaining_time" translatable="false">00:00</string>
@@ -182,8 +189,8 @@
<string name="snackbar_update_available">is available!</string>
<string name="snackbar_url_app_home_page" translatable="false">https://github.com/michatec/Radio/releases/latest</string>
<string name="snackbar_github_update_check_url" translatable="false">https://api.github.com/repos/michatec/Radio/releases/latest</string>
<string name="app_name" translatable="false">Radio</string>
<string name="icon_launcher" translatable="false">Icon launcher.</string>
<string name="snackbar_failed_permission_notification">Failed to request notification permission.</string>
<!-- Extras -->
<string name="loading">Loading…</string>
+8 -8
View File
@@ -1,16 +1,16 @@
[versions]
activityKtx = "1.13.0"
agp = "9.1.1"
agp = "9.2.1"
coreKtx = "1.18.0"
freedroidwarn = "V1.11"
gson = "2.13.2"
kotlin = "2.3.20"
freedroidwarn = "V1.13"
gson = "2.14.0"
kotlin = "2.3.21"
leanback = "1.2.0"
material = "1.13.0"
material = "1.14.0"
material3 = "1.4.0"
media = "1.7.1"
media3 = "1.10.0"
navigation = "2.9.7"
media = "1.8.0"
media3 = "1.10.1"
navigation = "2.9.8"
paletteKtx = "1.0.0"
preferenceKtx = "1.2.1"
volley = "1.2.1"
Binary file not shown.
+3 -1
View File
@@ -1,7 +1,9 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip
networkTimeout=10000
retries=0
retryBackOffMs=500
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Vendored
+1 -1
View File
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/2d6327017519d23b96af35865dc997fcb544fb40/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Vendored
+10 -21
View File
@@ -23,8 +23,8 @@
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
@rem Set local scope for the variables, and ensure extensions are enabled
setlocal EnableExtensions
set DIRNAME=%~dp0
if "%DIRNAME%"=="" set DIRNAME=.
@@ -51,7 +51,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
@@ -65,7 +65,7 @@ echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
"%COMSPEC%" /c exit 1
:execute
@rem Setup the command line
@@ -73,21 +73,10 @@ goto fail
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
@rem which allows us to clear the local environment before executing the java command
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
:end
@rem End local scope for the variables with windows NT shell
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega
:exitWithErrorLevel
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
"%COMSPEC%" /c exit %ERRORLEVEL%