Browse Source

fix riff renaming

Thomas Forest 1 year ago
parent
commit
dc62f8f591
54 changed files with 139 additions and 181 deletions
  1. 0 1
      .idea/.name
  2. 1 1
      .idea/misc.xml
  3. 1 1
      app/build.gradle
  4. 0 24
      app/src/androidTest/java/fr/forum_thalie/tsumugi/ExampleInstrumentedTest.kt
  5. 3 3
      app/src/main/AndroidManifest.xml
  6. 1 1
      app/src/main/java/fr/riff_app/riff/Actions.kt
  7. 2 2
      app/src/main/java/fr/riff_app/riff/Async.kt
  8. 1 1
      app/src/main/java/fr/riff_app/riff/BaseActivity.kt
  9. 1 1
      app/src/main/java/fr/riff_app/riff/BaseNotification.kt
  10. 4 4
      app/src/main/java/fr/riff_app/riff/BootBroadcastReceiver.kt
  11. 4 4
      app/src/main/java/fr/riff_app/riff/MainActivity.kt
  12. 1 1
      app/src/main/java/fr/riff_app/riff/NavigationExtensions.kt
  13. 2 2
      app/src/main/java/fr/riff_app/riff/NowPlayingNotification.kt
  14. 2 2
      app/src/main/java/fr/riff_app/riff/ParametersActivity.kt
  15. 6 6
      app/src/main/java/fr/riff_app/riff/RadioService.kt
  16. 2 2
      app/src/main/java/fr/riff_app/riff/Tickers.kt
  17. 2 2
      app/src/main/java/fr/riff_app/riff/Values.kt
  18. 3 3
      app/src/main/java/fr/riff_app/riff/alarm/RadioAlarm.kt
  19. 2 2
      app/src/main/java/fr/riff_app/riff/alarm/RadioSleeper.kt
  20. 5 5
      app/src/main/java/fr/riff_app/riff/planning/Planning.kt
  21. 3 3
      app/src/main/java/fr/riff_app/riff/planning/Programme.kt
  22. 3 3
      app/src/main/java/fr/riff_app/riff/playerstore/PlayerStore.kt
  23. 2 2
      app/src/main/java/fr/riff_app/riff/playerstore/Song.kt
  24. 5 5
      app/src/main/java/fr/riff_app/riff/preferences/AlarmAdjustVolumeFragment.kt
  25. 5 5
      app/src/main/java/fr/riff_app/riff/preferences/AlarmFragment.kt
  26. 3 3
      app/src/main/java/fr/riff_app/riff/preferences/CustomizeFragment.kt
  27. 2 2
      app/src/main/java/fr/riff_app/riff/preferences/MainPreferenceFragment.kt
  28. 3 3
      app/src/main/java/fr/riff_app/riff/preferences/SleepFragment.kt
  29. 1 1
      app/src/main/java/fr/riff_app/riff/ui/APagerAdapter.kt
  30. 1 1
      app/src/main/java/fr/riff_app/riff/ui/news/News.kt
  31. 3 3
      app/src/main/java/fr/riff_app/riff/ui/news/NewsAdapter.kt
  32. 2 2
      app/src/main/java/fr/riff_app/riff/ui/news/NewsFragment.kt
  33. 4 4
      app/src/main/java/fr/riff_app/riff/ui/news/NewsViewModel.kt
  34. 1 1
      app/src/main/java/fr/riff_app/riff/ui/news/WebViewNews.kt
  35. 8 8
      app/src/main/java/fr/riff_app/riff/ui/nowplaying/NowPlayingFragment.kt
  36. 3 3
      app/src/main/java/fr/riff_app/riff/ui/nowplaying/NowPlayingViewModel.kt
  37. 7 7
      app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeAdapter.kt
  38. 5 5
      app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeDayFragment.kt
  39. 1 1
      app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeDayViewModel.kt
  40. 5 5
      app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeFragment.kt
  41. 5 5
      app/src/main/java/fr/riff_app/riff/ui/songs/SongsFragment.kt
  42. 3 3
      app/src/main/java/fr/riff_app/riff/ui/songs/queuelp/LastPlayedFragment.kt
  43. 6 6
      app/src/main/java/fr/riff_app/riff/ui/songs/queuelp/SongAdaptater.kt
  44. 1 1
      app/src/main/res/navigation/navigation_news.xml
  45. 1 1
      app/src/main/res/navigation/navigation_nowplaying.xml
  46. 1 1
      app/src/main/res/navigation/navigation_programme.xml
  47. 1 1
      app/src/main/res/navigation/navigation_songs.xml
  48. 2 2
      app/src/main/res/values-fr/strings.xml
  49. 1 1
      app/src/main/res/values-v21/strings.xml
  50. 3 3
      app/src/main/res/values/strings.xml
  51. 1 1
      app/src/main/res/xml/alarm_preferences.xml
  52. 3 3
      app/src/main/res/xml/preferences.xml
  53. 0 17
      app/src/test/java/fr/forum_thalie/tsumugi/ExampleUnitTest.kt
  54. 1 1
      settings.gradle

+ 0 - 1
.idea/.name View File

1
-Tsumugi-app

+ 1 - 1
.idea/misc.xml View File

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <project version="4">
2
 <project version="4">
3
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
3
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
4
     <output url="file://$PROJECT_DIR$/build/classes" />
4
     <output url="file://$PROJECT_DIR$/build/classes" />
5
   </component>
5
   </component>
6
   <component name="ProjectType">
6
   <component name="ProjectType">

+ 1 - 1
app/build.gradle View File

25
         jvmTarget = "11"
25
         jvmTarget = "11"
26
     }
26
     }
27
     defaultConfig {
27
     defaultConfig {
28
-        applicationId "fr.forum_thalie.tsumugi"
28
+        applicationId "fr.riff_app.riff"
29
         minSdkVersion 16
29
         minSdkVersion 16
30
         targetSdkVersion 32
30
         targetSdkVersion 32
31
         multiDexEnabled true
31
         multiDexEnabled true

+ 0 - 24
app/src/androidTest/java/fr/forum_thalie/tsumugi/ExampleInstrumentedTest.kt View File

1
-package fr.forum_thalie.tsumugi
2
-
3
-import androidx.test.platform.app.InstrumentationRegistry
4
-import androidx.test.ext.junit.runners.AndroidJUnit4
5
-
6
-import org.junit.Test
7
-import org.junit.runner.RunWith
8
-
9
-import org.junit.Assert.*
10
-
11
-/**
12
- * Instrumented test, which will execute on an Android device.
13
- *
14
- * See [testing documentation](http://d.android.com/tools/testing).
15
- */
16
-@RunWith(AndroidJUnit4::class)
17
-class ExampleInstrumentedTest {
18
-    @Test
19
-    fun useAppContext() {
20
-        // Context of the app under test.
21
-        val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22
-        assertEquals("fr.forum_thalie.tsumugi", appContext.packageName)
23
-    }
24
-}

+ 3 - 3
app/src/main/AndroidManifest.xml View File

1
 <?xml version="1.0" encoding="utf-8"?>
1
 <?xml version="1.0" encoding="utf-8"?>
2
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
     xmlns:tools="http://schemas.android.com/tools"
3
     xmlns:tools="http://schemas.android.com/tools"
4
-    package="fr.forum_thalie.tsumugi">
4
+    package="fr.riff_app.riff">
5
 
5
 
6
     <uses-permission android:name="android.permission.VIBRATE" />
6
     <uses-permission android:name="android.permission.VIBRATE" />
7
     <uses-permission android:name="android.permission.INTERNET" />
7
     <uses-permission android:name="android.permission.INTERNET" />
40
             android:exported="true">
40
             android:exported="true">
41
             <intent-filter>
41
             <intent-filter>
42
                 <action android:name="android.intent.action.BOOT_COMPLETED" />
42
                 <action android:name="android.intent.action.BOOT_COMPLETED" />
43
-                <action android:name="fr.forum_thalie.tsumugi.PLAY_OR_FALLBACK" />
44
-                <action android:name="fr.forum_thalie.tsumugi.NOTIFY" /> <!-- this is for Snooze -->
43
+                <action android:name="fr.riff_app.riff.PLAY_OR_FALLBACK" />
44
+                <action android:name="fr.riff_app.riff.NOTIFY" /> <!-- this is for Snooze -->
45
                 <category android:name="android.intent.category.DEFAULT"/>
45
                 <category android:name="android.intent.category.DEFAULT"/>
46
             </intent-filter>
46
             </intent-filter>
47
         </receiver>
47
         </receiver>

app/src/main/java/fr/forum_thalie/tsumugi/Actions.kt → app/src/main/java/fr/riff_app/riff/Actions.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 enum class Actions
3
 enum class Actions
4
 {
4
 {

app/src/main/java/fr/forum_thalie/tsumugi/Async.kt → app/src/main/java/fr/riff_app/riff/Async.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.os.AsyncTask
3
 import android.os.AsyncTask
4
 import android.util.Log
4
 import android.util.Log
5
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
5
+import fr.riff_app.riff.playerstore.PlayerStore
6
 
6
 
7
 class Async(val handler: (Any?) -> Any?, val post: (Any?) -> Unit = {},
7
 class Async(val handler: (Any?) -> Any?, val post: (Any?) -> Unit = {},
8
             private val actionOnError: ActionOnError = ActionOnError.RESET, private val parameters: Any? = null) :
8
             private val actionOnError: ActionOnError = ActionOnError.RESET, private val parameters: Any? = null) :

app/src/main/java/fr/forum_thalie/tsumugi/BaseActivity.kt → app/src/main/java/fr/riff_app/riff/BaseActivity.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.content.Intent
3
 import android.content.Intent
4
 import android.os.Bundle
4
 import android.os.Bundle

app/src/main/java/fr/forum_thalie/tsumugi/BaseNotification.kt → app/src/main/java/fr/riff_app/riff/BaseNotification.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.app.Notification
3
 import android.app.Notification
4
 import android.app.NotificationChannel
4
 import android.app.NotificationChannel

app/src/main/java/fr/forum_thalie/tsumugi/BootBroadcastReceiver.kt → app/src/main/java/fr/riff_app/riff/BootBroadcastReceiver.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.content.BroadcastReceiver
3
 import android.content.BroadcastReceiver
4
 import android.content.Context
4
 import android.content.Context
6
 import android.os.Build
6
 import android.os.Build
7
 import android.util.Log
7
 import android.util.Log
8
 import androidx.preference.PreferenceManager
8
 import androidx.preference.PreferenceManager
9
-import fr.forum_thalie.tsumugi.alarm.RadioAlarm
10
-import fr.forum_thalie.tsumugi.planning.Planning
11
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
9
+import fr.riff_app.riff.alarm.RadioAlarm
10
+import fr.riff_app.riff.planning.Planning
11
+import fr.riff_app.riff.playerstore.PlayerStore
12
 
12
 
13
 class BootBroadcastReceiver : BroadcastReceiver(){
13
 class BootBroadcastReceiver : BroadcastReceiver(){
14
 
14
 

app/src/main/java/fr/forum_thalie/tsumugi/MainActivity.kt → app/src/main/java/fr/riff_app/riff/MainActivity.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import com.google.android.material.bottomnavigation.BottomNavigationView
4
 import com.google.android.material.bottomnavigation.BottomNavigationView
11
 import androidx.lifecycle.LiveData
11
 import androidx.lifecycle.LiveData
12
 import androidx.lifecycle.Observer
12
 import androidx.lifecycle.Observer
13
 import androidx.navigation.NavController
13
 import androidx.navigation.NavController
14
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
14
+import fr.riff_app.riff.playerstore.PlayerStore
15
 
15
 
16
 import java.util.Timer
16
 import java.util.Timer
17
 import android.view.MenuItem
17
 import android.view.MenuItem
18
 import com.google.android.material.snackbar.Snackbar
18
 import com.google.android.material.snackbar.Snackbar
19
-import fr.forum_thalie.tsumugi.alarm.RadioAlarm
20
-import fr.forum_thalie.tsumugi.planning.Planning
19
+import fr.riff_app.riff.alarm.RadioAlarm
20
+import fr.riff_app.riff.planning.Planning
21
 
21
 
22
 
22
 
23
 /* Log to file import
23
 /* Log to file import

app/src/main/java/fr/forum_thalie/tsumugi/NavigationExtensions.kt → app/src/main/java/fr/riff_app/riff/NavigationExtensions.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 
3
 
4
 import android.content.Intent
4
 import android.content.Intent

app/src/main/java/fr/forum_thalie/tsumugi/NowPlayingNotification.kt → app/src/main/java/fr/riff_app/riff/NowPlayingNotification.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.app.PendingIntent
3
 import android.app.PendingIntent
4
 import android.content.Context
4
 import android.content.Context
8
 import android.support.v4.media.session.PlaybackStateCompat
8
 import android.support.v4.media.session.PlaybackStateCompat
9
 import androidx.annotation.RequiresApi
9
 import androidx.annotation.RequiresApi
10
 import androidx.core.app.NotificationCompat
10
 import androidx.core.app.NotificationCompat
11
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
11
+import fr.riff_app.riff.playerstore.PlayerStore
12
 
12
 
13
 class NowPlayingNotification(
13
 class NowPlayingNotification(
14
     notificationChannelId: String,
14
     notificationChannelId: String,

app/src/main/java/fr/forum_thalie/tsumugi/ParametersActivity.kt → app/src/main/java/fr/riff_app/riff/ParametersActivity.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.view.MenuItem
4
 import android.view.MenuItem
5
-import fr.forum_thalie.tsumugi.preferences.*
5
+import fr.riff_app.riff.preferences.*
6
 
6
 
7
 
7
 
8
 class ParametersActivity : BaseActivity() {
8
 class ParametersActivity : BaseActivity() {

app/src/main/java/fr/forum_thalie/tsumugi/RadioService.kt → app/src/main/java/fr/riff_app/riff/RadioService.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.app.Service
3
 import android.app.Service
4
 import android.content.BroadcastReceiver
4
 import android.content.BroadcastReceiver
32
 import androidx.preference.PreferenceManager
32
 import androidx.preference.PreferenceManager
33
 import com.google.android.exoplayer2.*
33
 import com.google.android.exoplayer2.*
34
 import com.google.android.exoplayer2.metadata.icy.*
34
 import com.google.android.exoplayer2.metadata.icy.*
35
-import fr.forum_thalie.tsumugi.alarm.RadioAlarm
36
-import fr.forum_thalie.tsumugi.alarm.RadioSleeper
37
-import fr.forum_thalie.tsumugi.planning.Planning
38
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
35
+import fr.riff_app.riff.alarm.RadioAlarm
36
+import fr.riff_app.riff.alarm.RadioSleeper
37
+import fr.riff_app.riff.planning.Planning
38
+import fr.riff_app.riff.playerstore.PlayerStore
39
 import java.util.*
39
 import java.util.*
40
 import kotlin.math.exp
40
 import kotlin.math.exp
41
 import kotlin.math.ln
41
 import kotlin.math.ln
428
         )
428
         )
429
         // This is the MediaSource representing the media to be played.
429
         // This is the MediaSource representing the media to be played.
430
         radioMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
430
         radioMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
431
-            .createMediaSource(Uri.parse(getString(R.string.STREAM_URL_TSUMUGI)))
431
+            .createMediaSource(Uri.parse(getString(R.string.STREAM_URL_RIFF)))
432
 
432
 
433
         fallbackMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
433
         fallbackMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
434
             .createMediaSource(Uri.parse("file:///android_asset/the_stream_is_down.mp3"))
434
             .createMediaSource(Uri.parse("file:///android_asset/the_stream_is_down.mp3"))

app/src/main/java/fr/forum_thalie/tsumugi/Tickers.kt → app/src/main/java/fr/riff_app/riff/Tickers.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.support.v4.media.session.PlaybackStateCompat
3
 import android.support.v4.media.session.PlaybackStateCompat
4
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
4
+import fr.riff_app.riff.playerstore.PlayerStore
5
 import java.util.*
5
 import java.util.*
6
 
6
 
7
 class ApiFetchTick  : TimerTask() {
7
 class ApiFetchTick  : TimerTask() {

app/src/main/java/fr/forum_thalie/tsumugi/Values.kt → app/src/main/java/fr/riff_app/riff/Values.kt View File

1
-package fr.forum_thalie.tsumugi
1
+package fr.riff_app.riff
2
 
2
 
3
 import android.content.SharedPreferences
3
 import android.content.SharedPreferences
4
 import android.content.res.ColorStateList
4
 import android.content.res.ColorStateList
5
 import kotlin.collections.ArrayList
5
 import kotlin.collections.ArrayList
6
 
6
 
7
-const val tag = "fr.forum_thalie.tsumugi"
7
+const val tag = "fr.riff_app.riff"
8
 const val noConnectionValue = "—"
8
 const val noConnectionValue = "—"
9
 const val streamDownValue = "Riff est HS !" // we don't want this value to be displaed in the "last played" screen.
9
 const val streamDownValue = "Riff est HS !" // we don't want this value to be displaed in the "last played" screen.
10
 val weekdaysArray : Array<String> = arrayOf( "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche")
10
 val weekdaysArray : Array<String> = arrayOf( "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche")

app/src/main/java/fr/forum_thalie/tsumugi/alarm/RadioAlarm.kt → app/src/main/java/fr/riff_app/riff/alarm/RadioAlarm.kt View File

1
-package fr.forum_thalie.tsumugi.alarm
1
+package fr.riff_app.riff.alarm
2
 
2
 
3
 import android.app.AlarmManager
3
 import android.app.AlarmManager
4
 import android.app.PendingIntent
4
 import android.app.PendingIntent
8
 import android.util.Log
8
 import android.util.Log
9
 import androidx.annotation.RequiresApi
9
 import androidx.annotation.RequiresApi
10
 import androidx.core.app.AlarmManagerCompat
10
 import androidx.core.app.AlarmManagerCompat
11
-import fr.forum_thalie.tsumugi.BootBroadcastReceiver
11
+import fr.riff_app.riff.BootBroadcastReceiver
12
 import androidx.preference.PreferenceManager
12
 import androidx.preference.PreferenceManager
13
-import fr.forum_thalie.tsumugi.*
13
+import fr.riff_app.riff.*
14
 import java.util.*
14
 import java.util.*
15
 import kotlin.collections.ArrayList
15
 import kotlin.collections.ArrayList
16
 
16
 

app/src/main/java/fr/forum_thalie/tsumugi/alarm/RadioSleeper.kt → app/src/main/java/fr/riff_app/riff/alarm/RadioSleeper.kt View File

1
-package fr.forum_thalie.tsumugi.alarm
1
+package fr.riff_app.riff.alarm
2
 
2
 
3
 import android.app.AlarmManager
3
 import android.app.AlarmManager
4
 import android.app.PendingIntent
4
 import android.app.PendingIntent
10
 import androidx.core.app.AlarmManagerCompat
10
 import androidx.core.app.AlarmManagerCompat
11
 import androidx.lifecycle.MutableLiveData
11
 import androidx.lifecycle.MutableLiveData
12
 import androidx.preference.PreferenceManager
12
 import androidx.preference.PreferenceManager
13
-import fr.forum_thalie.tsumugi.*
13
+import fr.riff_app.riff.*
14
 
14
 
15
 class RadioSleeper {
15
 class RadioSleeper {
16
 
16
 

app/src/main/java/fr/forum_thalie/tsumugi/planning/Planning.kt → app/src/main/java/fr/riff_app/riff/planning/Planning.kt View File

1
-package fr.forum_thalie.tsumugi.planning
1
+package fr.riff_app.riff.planning
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import androidx.lifecycle.MutableLiveData
4
 import androidx.lifecycle.MutableLiveData
5
-import fr.forum_thalie.tsumugi.Async
6
-import fr.forum_thalie.tsumugi.R
7
-import fr.forum_thalie.tsumugi.noConnectionValue
8
-import fr.forum_thalie.tsumugi.weekdays
5
+import fr.riff_app.riff.Async
6
+import fr.riff_app.riff.R
7
+import fr.riff_app.riff.noConnectionValue
8
+import fr.riff_app.riff.weekdays
9
 import org.json.JSONObject
9
 import org.json.JSONObject
10
 import java.io.IOException
10
 import java.io.IOException
11
 import java.net.URL
11
 import java.net.URL

app/src/main/java/fr/forum_thalie/tsumugi/planning/Programme.kt → app/src/main/java/fr/riff_app/riff/planning/Programme.kt View File

1
-package fr.forum_thalie.tsumugi.planning
1
+package fr.riff_app.riff.planning
2
 
2
 
3
 import android.util.Log
3
 import android.util.Log
4
-import fr.forum_thalie.tsumugi.tag
5
-import fr.forum_thalie.tsumugi.weekdays
4
+import fr.riff_app.riff.tag
5
+import fr.riff_app.riff.weekdays
6
 import java.util.*
6
 import java.util.*
7
 import kotlin.collections.ArrayList
7
 import kotlin.collections.ArrayList
8
 
8
 

app/src/main/java/fr/forum_thalie/tsumugi/playerstore/PlayerStore.kt → app/src/main/java/fr/riff_app/riff/playerstore/PlayerStore.kt View File

1
-package fr.forum_thalie.tsumugi.playerstore
1
+package fr.riff_app.riff.playerstore
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.graphics.Bitmap
4
 import android.graphics.Bitmap
6
 import android.support.v4.media.session.PlaybackStateCompat
6
 import android.support.v4.media.session.PlaybackStateCompat
7
 import android.util.Log
7
 import android.util.Log
8
 import androidx.lifecycle.MutableLiveData
8
 import androidx.lifecycle.MutableLiveData
9
-import fr.forum_thalie.tsumugi.*
10
-import fr.forum_thalie.tsumugi.planning.Planning
9
+import fr.riff_app.riff.*
10
+import fr.riff_app.riff.planning.Planning
11
 import org.json.JSONObject
11
 import org.json.JSONObject
12
 import java.net.URL
12
 import java.net.URL
13
 import java.text.ParseException
13
 import java.text.ParseException

app/src/main/java/fr/forum_thalie/tsumugi/playerstore/Song.kt → app/src/main/java/fr/riff_app/riff/playerstore/Song.kt View File

1
-package fr.forum_thalie.tsumugi.playerstore
1
+package fr.riff_app.riff.playerstore
2
 
2
 
3
 import androidx.core.text.HtmlCompat
3
 import androidx.core.text.HtmlCompat
4
 import androidx.lifecycle.MutableLiveData
4
 import androidx.lifecycle.MutableLiveData
5
-import fr.forum_thalie.tsumugi.noConnectionValue
5
+import fr.riff_app.riff.noConnectionValue
6
 
6
 
7
 class Song(artistTitle: String = "", _id : Int = 0) {
7
 class Song(artistTitle: String = "", _id : Int = 0) {
8
 
8
 

app/src/main/java/fr/forum_thalie/tsumugi/preferences/AlarmAdjustVolumeFragment.kt → app/src/main/java/fr/riff_app/riff/preferences/AlarmAdjustVolumeFragment.kt View File

1
-package fr.forum_thalie.tsumugi.preferences
1
+package fr.riff_app.riff.preferences
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.content.Intent
4
 import android.content.Intent
14
 import androidx.preference.PreferenceManager
14
 import androidx.preference.PreferenceManager
15
 import androidx.preference.SeekBarPreference
15
 import androidx.preference.SeekBarPreference
16
 import androidx.preference.SwitchPreferenceCompat
16
 import androidx.preference.SwitchPreferenceCompat
17
-import fr.forum_thalie.tsumugi.Actions
18
-import fr.forum_thalie.tsumugi.R
19
-import fr.forum_thalie.tsumugi.RadioService
20
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
17
+import fr.riff_app.riff.Actions
18
+import fr.riff_app.riff.R
19
+import fr.riff_app.riff.RadioService
20
+import fr.riff_app.riff.playerstore.PlayerStore
21
 import kotlinx.coroutines.*
21
 import kotlinx.coroutines.*
22
 import kotlin.coroutines.CoroutineContext
22
 import kotlin.coroutines.CoroutineContext
23
 import kotlin.math.max
23
 import kotlin.math.max

app/src/main/java/fr/forum_thalie/tsumugi/preferences/AlarmFragment.kt → app/src/main/java/fr/riff_app/riff/preferences/AlarmFragment.kt View File

1
-package fr.forum_thalie.tsumugi.preferences
1
+package fr.riff_app.riff.preferences
2
 
2
 
3
 import android.app.TimePickerDialog
3
 import android.app.TimePickerDialog
4
 import android.content.Context
4
 import android.content.Context
11
 import androidx.appcompat.app.AppCompatActivity
11
 import androidx.appcompat.app.AppCompatActivity
12
 import androidx.core.content.edit
12
 import androidx.core.content.edit
13
 import androidx.preference.*
13
 import androidx.preference.*
14
-import fr.forum_thalie.tsumugi.*
15
-import fr.forum_thalie.tsumugi.R
16
-import fr.forum_thalie.tsumugi.alarm.RadioAlarm
17
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
14
+import fr.riff_app.riff.*
15
+import fr.riff_app.riff.R
16
+import fr.riff_app.riff.alarm.RadioAlarm
17
+import fr.riff_app.riff.playerstore.PlayerStore
18
 import kotlinx.coroutines.CoroutineScope
18
 import kotlinx.coroutines.CoroutineScope
19
 import kotlinx.coroutines.GlobalScope.coroutineContext
19
 import kotlinx.coroutines.GlobalScope.coroutineContext
20
 import kotlinx.coroutines.Job
20
 import kotlinx.coroutines.Job

app/src/main/java/fr/forum_thalie/tsumugi/preferences/CustomizeFragment.kt → app/src/main/java/fr/riff_app/riff/preferences/CustomizeFragment.kt View File

1
-package fr.forum_thalie.tsumugi.preferences
1
+package fr.riff_app.riff.preferences
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.os.Bundle
4
 import android.os.Bundle
5
 import androidx.appcompat.app.AlertDialog
5
 import androidx.appcompat.app.AlertDialog
6
 import androidx.appcompat.app.AppCompatActivity
6
 import androidx.appcompat.app.AppCompatActivity
7
 import androidx.preference.*
7
 import androidx.preference.*
8
-import fr.forum_thalie.tsumugi.R
9
-import fr.forum_thalie.tsumugi.preferenceStore
8
+import fr.riff_app.riff.R
9
+import fr.riff_app.riff.preferenceStore
10
 
10
 
11
 class CustomizeFragment : PreferenceFragmentCompat() {
11
 class CustomizeFragment : PreferenceFragmentCompat() {
12
     override fun onAttach(context: Context) {
12
     override fun onAttach(context: Context) {

app/src/main/java/fr/forum_thalie/tsumugi/preferences/MainPreferenceFragment.kt → app/src/main/java/fr/riff_app/riff/preferences/MainPreferenceFragment.kt View File

1
-package fr.forum_thalie.tsumugi.preferences
1
+package fr.riff_app.riff.preferences
2
 
2
 
3
 import android.content.Intent
3
 import android.content.Intent
4
 import android.net.Uri
4
 import android.net.Uri
5
 import android.os.Bundle
5
 import android.os.Bundle
6
-import fr.forum_thalie.tsumugi.R
6
+import fr.riff_app.riff.R
7
 import android.annotation.SuppressLint
7
 import android.annotation.SuppressLint
8
 import androidx.appcompat.app.AppCompatActivity
8
 import androidx.appcompat.app.AppCompatActivity
9
 import androidx.preference.*
9
 import androidx.preference.*

app/src/main/java/fr/forum_thalie/tsumugi/preferences/SleepFragment.kt → app/src/main/java/fr/riff_app/riff/preferences/SleepFragment.kt View File

1
-package fr.forum_thalie.tsumugi.preferences
1
+package fr.riff_app.riff.preferences
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.os.Bundle
4
 import android.os.Bundle
5
 import androidx.preference.*
5
 import androidx.preference.*
6
-import fr.forum_thalie.tsumugi.R
6
+import fr.riff_app.riff.R
7
 import android.text.InputType
7
 import android.text.InputType
8
 import androidx.appcompat.app.AppCompatActivity
8
 import androidx.appcompat.app.AppCompatActivity
9
-import fr.forum_thalie.tsumugi.alarm.RadioSleeper
9
+import fr.riff_app.riff.alarm.RadioSleeper
10
 
10
 
11
 
11
 
12
 class SleepFragment : PreferenceFragmentCompat() {
12
 class SleepFragment : PreferenceFragmentCompat() {

app/src/main/java/fr/forum_thalie/tsumugi/ui/APagerAdapter.kt → app/src/main/java/fr/riff_app/riff/ui/APagerAdapter.kt View File

1
-package fr.forum_thalie.tsumugi.ui
1
+package fr.riff_app.riff.ui
2
 
2
 
3
 import androidx.fragment.app.Fragment
3
 import androidx.fragment.app.Fragment
4
 import androidx.fragment.app.FragmentPagerAdapter
4
 import androidx.fragment.app.FragmentPagerAdapter

app/src/main/java/fr/forum_thalie/tsumugi/ui/news/News.kt → app/src/main/java/fr/riff_app/riff/ui/news/News.kt View File

1
-package fr.forum_thalie.tsumugi.ui.news
1
+package fr.riff_app.riff.ui.news
2
 
2
 
3
 import java.util.*
3
 import java.util.*
4
 
4
 

app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsAdapter.kt → app/src/main/java/fr/riff_app/riff/ui/news/NewsAdapter.kt View File

1
-package fr.forum_thalie.tsumugi.ui.news
1
+package fr.riff_app.riff.ui.news
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.app.Activity
4
 import android.app.Activity
20
 import androidx.core.text.HtmlCompat
20
 import androidx.core.text.HtmlCompat
21
 import androidx.core.widget.TextViewCompat
21
 import androidx.core.widget.TextViewCompat
22
 import androidx.recyclerview.widget.RecyclerView
22
 import androidx.recyclerview.widget.RecyclerView
23
-import fr.forum_thalie.tsumugi.R
24
-import fr.forum_thalie.tsumugi.newsDisplayDatePattern
23
+import fr.riff_app.riff.R
24
+import fr.riff_app.riff.newsDisplayDatePattern
25
 import java.io.IOException
25
 import java.io.IOException
26
 import java.io.InputStream
26
 import java.io.InputStream
27
 import java.net.URL
27
 import java.net.URL

app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsFragment.kt → app/src/main/java/fr/riff_app/riff/ui/news/NewsFragment.kt View File

1
-package fr.forum_thalie.tsumugi.ui.news
1
+package fr.riff_app.riff.ui.news
2
 
2
 
3
 import android.os.Build
3
 import android.os.Build
4
 import android.os.Bundle
4
 import android.os.Bundle
12
 import androidx.recyclerview.widget.LinearLayoutManager
12
 import androidx.recyclerview.widget.LinearLayoutManager
13
 import androidx.recyclerview.widget.RecyclerView
13
 import androidx.recyclerview.widget.RecyclerView
14
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
14
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
15
-import fr.forum_thalie.tsumugi.R
15
+import fr.riff_app.riff.R
16
 
16
 
17
 class NewsFragment : Fragment() {
17
 class NewsFragment : Fragment() {
18
 
18
 

app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsViewModel.kt → app/src/main/java/fr/riff_app/riff/ui/news/NewsViewModel.kt View File

1
-package fr.forum_thalie.tsumugi.ui.news
1
+package fr.riff_app.riff.ui.news
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.os.Build
4
 import android.os.Build
8
 import androidx.lifecycle.ViewModel
8
 import androidx.lifecycle.ViewModel
9
 import androidx.recyclerview.widget.RecyclerView
9
 import androidx.recyclerview.widget.RecyclerView
10
 import com.prof.rssparser.Parser
10
 import com.prof.rssparser.Parser
11
-import fr.forum_thalie.tsumugi.R
12
-import fr.forum_thalie.tsumugi.newsDateTimePattern
13
-import fr.forum_thalie.tsumugi.tag
11
+import fr.riff_app.riff.R
12
+import fr.riff_app.riff.newsDateTimePattern
13
+import fr.riff_app.riff.tag
14
 import kotlinx.coroutines.CoroutineScope
14
 import kotlinx.coroutines.CoroutineScope
15
 import kotlinx.coroutines.Dispatchers
15
 import kotlinx.coroutines.Dispatchers
16
 import kotlinx.coroutines.Job
16
 import kotlinx.coroutines.Job

app/src/main/java/fr/forum_thalie/tsumugi/ui/news/WebViewNews.kt → app/src/main/java/fr/riff_app/riff/ui/news/WebViewNews.kt View File

1
-package fr.forum_thalie.tsumugi.ui.news
1
+package fr.riff_app.riff.ui.news
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.content.Intent
4
 import android.content.Intent

app/src/main/java/fr/forum_thalie/tsumugi/ui/nowplaying/NowPlayingFragment.kt → app/src/main/java/fr/riff_app/riff/ui/nowplaying/NowPlayingFragment.kt View File

1
-package fr.forum_thalie.tsumugi.ui.nowplaying
1
+package fr.riff_app.riff.ui.nowplaying
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.content.ClipboardManager
4
 import android.content.ClipboardManager
16
 import androidx.lifecycle.Observer
16
 import androidx.lifecycle.Observer
17
 import com.google.android.material.snackbar.BaseTransientBottomBar
17
 import com.google.android.material.snackbar.BaseTransientBottomBar
18
 import com.google.android.material.snackbar.Snackbar
18
 import com.google.android.material.snackbar.Snackbar
19
-import fr.forum_thalie.tsumugi.*
20
-import fr.forum_thalie.tsumugi.alarm.RadioSleeper
21
-import fr.forum_thalie.tsumugi.planning.Planning
22
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
23
-import fr.forum_thalie.tsumugi.playerstore.Song
19
+import fr.riff_app.riff.*
20
+import fr.riff_app.riff.alarm.RadioSleeper
21
+import fr.riff_app.riff.planning.Planning
22
+import fr.riff_app.riff.playerstore.PlayerStore
23
+import fr.riff_app.riff.playerstore.Song
24
 
24
 
25
 
25
 
26
 class NowPlayingFragment : Fragment() {
26
 class NowPlayingFragment : Fragment() {
89
 
89
 
90
 
90
 
91
         Planning.instance.currentProgramme.observe(viewLifecycleOwner, Observer {
91
         Planning.instance.currentProgramme.observe(viewLifecycleOwner, Observer {
92
-            currentProgrammeText.text = "${context!!.getString(R.string.current_programme)} $it"
92
+            currentProgrammeText.text = "${requireContext().getString(R.string.current_programme)} $it"
93
         })
93
         })
94
 
94
 
95
 
95
 
184
 
184
 
185
         val setClipboardListener: View.OnLongClickListener = View.OnLongClickListener {
185
         val setClipboardListener: View.OnLongClickListener = View.OnLongClickListener {
186
             val text = PlayerStore.instance.currentSong.artist.value + " - " + PlayerStore.instance.currentSong.title.value
186
             val text = PlayerStore.instance.currentSong.artist.value + " - " + PlayerStore.instance.currentSong.title.value
187
-            val clipboard = context!!.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
187
+            val clipboard = requireContext().getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
188
             val clip = android.content.ClipData.newPlainText("Copied Text", text)
188
             val clip = android.content.ClipData.newPlainText("Copied Text", text)
189
             clipboard.setPrimaryClip(clip)
189
             clipboard.setPrimaryClip(clip)
190
             val snackBarLength = if (preferenceStore.getBoolean("snackbarPersistent", false))
190
             val snackBarLength = if (preferenceStore.getBoolean("snackbarPersistent", false))

app/src/main/java/fr/forum_thalie/tsumugi/ui/nowplaying/NowPlayingViewModel.kt → app/src/main/java/fr/riff_app/riff/ui/nowplaying/NowPlayingViewModel.kt View File

1
-package fr.forum_thalie.tsumugi.ui.nowplaying
1
+package fr.riff_app.riff.ui.nowplaying
2
 
2
 
3
 import android.widget.SeekBar
3
 import android.widget.SeekBar
4
 import androidx.core.content.edit
4
 import androidx.core.content.edit
5
 import androidx.lifecycle.MutableLiveData
5
 import androidx.lifecycle.MutableLiveData
6
 import androidx.lifecycle.ViewModel
6
 import androidx.lifecycle.ViewModel
7
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
8
-import fr.forum_thalie.tsumugi.preferenceStore
7
+import fr.riff_app.riff.playerstore.PlayerStore
8
+import fr.riff_app.riff.preferenceStore
9
 
9
 
10
 class NowPlayingViewModel: ViewModel() {
10
 class NowPlayingViewModel: ViewModel() {
11
 
11
 

app/src/main/java/fr/forum_thalie/tsumugi/ui/programme/ProgrammeAdapter.kt → app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeAdapter.kt View File

1
-package fr.forum_thalie.tsumugi.ui.programme
1
+package fr.riff_app.riff.ui.programme
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.view.LayoutInflater
4
 import android.view.LayoutInflater
6
 import android.widget.TextView
6
 import android.widget.TextView
7
 import androidx.constraintlayout.widget.ConstraintLayout
7
 import androidx.constraintlayout.widget.ConstraintLayout
8
 import androidx.recyclerview.widget.RecyclerView
8
 import androidx.recyclerview.widget.RecyclerView
9
-import fr.forum_thalie.tsumugi.R
10
-import fr.forum_thalie.tsumugi.colorAccent
11
-import fr.forum_thalie.tsumugi.colorWhited
12
-import fr.forum_thalie.tsumugi.planning.Planning
13
-import fr.forum_thalie.tsumugi.planning.Programme
14
-import fr.forum_thalie.tsumugi.weekdaysSundayFirst
9
+import fr.riff_app.riff.R
10
+import fr.riff_app.riff.colorAccent
11
+import fr.riff_app.riff.colorWhited
12
+import fr.riff_app.riff.planning.Planning
13
+import fr.riff_app.riff.planning.Programme
14
+import fr.riff_app.riff.weekdaysSundayFirst
15
 import java.util.*
15
 import java.util.*
16
 
16
 
17
 class ProgrammeAdapter(private val dataSet: ArrayList<Programme>, private val day: String
17
 class ProgrammeAdapter(private val dataSet: ArrayList<Programme>, private val day: String

app/src/main/java/fr/forum_thalie/tsumugi/ui/programme/ProgrammeDayFragment.kt → app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeDayFragment.kt View File

1
-package fr.forum_thalie.tsumugi.ui.programme
1
+package fr.riff_app.riff.ui.programme
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.view.LayoutInflater
4
 import android.view.LayoutInflater
9
 import androidx.lifecycle.ViewModelProviders
9
 import androidx.lifecycle.ViewModelProviders
10
 import androidx.recyclerview.widget.LinearLayoutManager
10
 import androidx.recyclerview.widget.LinearLayoutManager
11
 import androidx.recyclerview.widget.RecyclerView
11
 import androidx.recyclerview.widget.RecyclerView
12
-import fr.forum_thalie.tsumugi.R
13
-import fr.forum_thalie.tsumugi.planning.Planning
14
-import fr.forum_thalie.tsumugi.planning.Programme
15
-import fr.forum_thalie.tsumugi.weekdays
12
+import fr.riff_app.riff.R
13
+import fr.riff_app.riff.planning.Planning
14
+import fr.riff_app.riff.planning.Programme
15
+import fr.riff_app.riff.weekdays
16
 
16
 
17
 
17
 
18
 class ProgrammeDayFragment : Fragment() {
18
 class ProgrammeDayFragment : Fragment() {

app/src/main/java/fr/forum_thalie/tsumugi/ui/programme/ProgrammeDayViewModel.kt → app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeDayViewModel.kt View File

1
-package fr.forum_thalie.tsumugi.ui.programme
1
+package fr.riff_app.riff.ui.programme
2
 
2
 
3
 import androidx.lifecycle.ViewModel
3
 import androidx.lifecycle.ViewModel
4
 
4
 

app/src/main/java/fr/forum_thalie/tsumugi/ui/programme/ProgrammeFragment.kt → app/src/main/java/fr/riff_app/riff/ui/programme/ProgrammeFragment.kt View File

1
-package fr.forum_thalie.tsumugi.ui.programme
1
+package fr.riff_app.riff.ui.programme
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.util.Log
4
 import android.util.Log
9
 import androidx.fragment.app.FragmentPagerAdapter
9
 import androidx.fragment.app.FragmentPagerAdapter
10
 import androidx.viewpager.widget.ViewPager
10
 import androidx.viewpager.widget.ViewPager
11
 import com.google.android.material.tabs.TabLayout
11
 import com.google.android.material.tabs.TabLayout
12
-import fr.forum_thalie.tsumugi.R
13
-import fr.forum_thalie.tsumugi.planning.Planning
14
-import fr.forum_thalie.tsumugi.ui.APagerAdapter
15
-import fr.forum_thalie.tsumugi.weekdays
12
+import fr.riff_app.riff.R
13
+import fr.riff_app.riff.planning.Planning
14
+import fr.riff_app.riff.ui.APagerAdapter
15
+import fr.riff_app.riff.weekdays
16
 import java.util.*
16
 import java.util.*
17
 
17
 
18
 class ProgrammeFragment : Fragment() {
18
 class ProgrammeFragment : Fragment() {

app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/SongsFragment.kt → app/src/main/java/fr/riff_app/riff/ui/songs/SongsFragment.kt View File

1
-package fr.forum_thalie.tsumugi.ui.songs
1
+package fr.riff_app.riff.ui.songs
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.util.Log
4
 import android.util.Log
9
 import androidx.fragment.app.FragmentPagerAdapter
9
 import androidx.fragment.app.FragmentPagerAdapter
10
 import androidx.viewpager.widget.ViewPager
10
 import androidx.viewpager.widget.ViewPager
11
 import com.google.android.material.tabs.TabLayout
11
 import com.google.android.material.tabs.TabLayout
12
-import fr.forum_thalie.tsumugi.R
13
-import fr.forum_thalie.tsumugi.ui.APagerAdapter
14
-import fr.forum_thalie.tsumugi.ui.programme.ProgrammeDayFragment
15
-import fr.forum_thalie.tsumugi.ui.songs.queuelp.LastPlayedFragment
12
+import fr.riff_app.riff.R
13
+import fr.riff_app.riff.ui.APagerAdapter
14
+import fr.riff_app.riff.ui.programme.ProgrammeDayFragment
15
+import fr.riff_app.riff.ui.songs.queuelp.LastPlayedFragment
16
 
16
 
17
 class SongsFragment : Fragment() {
17
 class SongsFragment : Fragment() {
18
 
18
 

app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/LastPlayedFragment.kt → app/src/main/java/fr/riff_app/riff/ui/songs/queuelp/LastPlayedFragment.kt View File

1
-package fr.forum_thalie.tsumugi.ui.songs.queuelp
1
+package fr.riff_app.riff.ui.songs.queuelp
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.util.Log
4
 import android.util.Log
9
 import androidx.lifecycle.Observer
9
 import androidx.lifecycle.Observer
10
 import androidx.recyclerview.widget.LinearLayoutManager
10
 import androidx.recyclerview.widget.LinearLayoutManager
11
 import androidx.recyclerview.widget.RecyclerView
11
 import androidx.recyclerview.widget.RecyclerView
12
-import fr.forum_thalie.tsumugi.R
13
-import fr.forum_thalie.tsumugi.playerstore.PlayerStore
12
+import fr.riff_app.riff.R
13
+import fr.riff_app.riff.playerstore.PlayerStore
14
 
14
 
15
 /**
15
 /**
16
  * A simple [Fragment] subclass.
16
  * A simple [Fragment] subclass.

app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/SongAdaptater.kt → app/src/main/java/fr/riff_app/riff/ui/songs/queuelp/SongAdaptater.kt View File

1
-package fr.forum_thalie.tsumugi.ui.songs.queuelp
1
+package fr.riff_app.riff.ui.songs.queuelp
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.graphics.Color
4
 import android.graphics.Color
8
 import androidx.constraintlayout.widget.ConstraintLayout
8
 import androidx.constraintlayout.widget.ConstraintLayout
9
 import androidx.core.content.res.ResourcesCompat
9
 import androidx.core.content.res.ResourcesCompat
10
 import androidx.recyclerview.widget.RecyclerView
10
 import androidx.recyclerview.widget.RecyclerView
11
-import fr.forum_thalie.tsumugi.R
12
-import fr.forum_thalie.tsumugi.colorBlue
13
-import fr.forum_thalie.tsumugi.colorWhited
14
-import fr.forum_thalie.tsumugi.playerstore.Song
15
-import fr.forum_thalie.tsumugi.tag
11
+import fr.riff_app.riff.R
12
+import fr.riff_app.riff.colorBlue
13
+import fr.riff_app.riff.colorWhited
14
+import fr.riff_app.riff.playerstore.Song
15
+import fr.riff_app.riff.tag
16
 import kotlinx.android.synthetic.main.song_view.view.*
16
 import kotlinx.android.synthetic.main.song_view.view.*
17
 import kotlin.collections.ArrayList
17
 import kotlin.collections.ArrayList
18
 
18
 

+ 1 - 1
app/src/main/res/navigation/navigation_news.xml View File

7
     tools:ignore="UnusedNavigation">
7
     tools:ignore="UnusedNavigation">
8
     <fragment
8
     <fragment
9
         android:id="@+id/fragment_news"
9
         android:id="@+id/fragment_news"
10
-        android:name="fr.forum_thalie.tsumugi.ui.news.NewsFragment"
10
+        android:name="fr.riff_app.riff.ui.news.NewsFragment"
11
         android:label="@string/title_news"
11
         android:label="@string/title_news"
12
         tools:layout="@layout/fragment_songs" />
12
         tools:layout="@layout/fragment_songs" />
13
 </navigation>
13
 </navigation>

+ 1 - 1
app/src/main/res/navigation/navigation_nowplaying.xml View File

8
 
8
 
9
     <fragment
9
     <fragment
10
         android:id="@+id/fragment_nowplaying"
10
         android:id="@+id/fragment_nowplaying"
11
-        android:name="fr.forum_thalie.tsumugi.ui.nowplaying.NowPlayingFragment"
11
+        android:name="fr.riff_app.riff.ui.nowplaying.NowPlayingFragment"
12
         android:label="@string/title_nowplaying" />
12
         android:label="@string/title_nowplaying" />
13
 
13
 
14
 </navigation>
14
 </navigation>

+ 1 - 1
app/src/main/res/navigation/navigation_programme.xml View File

8
 
8
 
9
     <fragment
9
     <fragment
10
         android:id="@+id/fragment_programme"
10
         android:id="@+id/fragment_programme"
11
-        android:name="fr.forum_thalie.tsumugi.ui.programme.ProgrammeFragment"
11
+        android:name="fr.riff_app.riff.ui.programme.ProgrammeFragment"
12
         android:label="@string/title_programme" />
12
         android:label="@string/title_programme" />
13
 
13
 
14
 </navigation>
14
 </navigation>

+ 1 - 1
app/src/main/res/navigation/navigation_songs.xml View File

7
     tools:ignore="UnusedNavigation">
7
     tools:ignore="UnusedNavigation">
8
     <fragment
8
     <fragment
9
         android:id="@+id/fragment_songs"
9
         android:id="@+id/fragment_songs"
10
-        android:name="fr.forum_thalie.tsumugi.ui.songs.SongsFragment"
10
+        android:name="fr.riff_app.riff.ui.songs.SongsFragment"
11
         android:label="@string/title_queue_lp"
11
         android:label="@string/title_queue_lp"
12
         tools:layout="@layout/fragment_songs" />
12
         tools:layout="@layout/fragment_songs" />
13
 </navigation>
13
 </navigation>

+ 2 - 2
app/src/main/res/values-fr/strings.xml View File

1
 <resources>
1
 <resources>
2
-    <string name="app_name">Tsumugi</string>
3
-    <string name="title_nowplaying">Tsumugi</string>
2
+    <string name="app_name">Riff</string>
3
+    <string name="title_nowplaying">Riff</string>
4
     <string name="title_queue_lp">Titres</string>
4
     <string name="title_queue_lp">Titres</string>
5
     <string name="title_chat">Chat</string>
5
     <string name="title_chat">Chat</string>
6
     <string name="title_news">Actus</string>
6
     <string name="title_news">Actus</string>

+ 1 - 1
app/src/main/res/values-v21/strings.xml View File

1
 <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
1
 <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
2
 
2
 
3
     <!-- URLs -->
3
     <!-- URLs -->
4
-    <string name="STREAM_URL_TSUMUGI">https://sstream.riff-radio.org/;stream.mp3</string>
4
+    <string name="STREAM_URL_RIFF">https://sstream.riff-radio.org/;stream.mp3</string>
5
 
5
 
6
 </resources>
6
 </resources>

+ 3 - 3
app/src/main/res/values/strings.xml View File

2
 
2
 
3
     <!-- URLs -->
3
     <!-- URLs -->
4
     <string name="STREAM_URL_RADIO">https://sstream.riff-radio.org/;stream.mp3</string>
4
     <string name="STREAM_URL_RADIO">https://sstream.riff-radio.org/;stream.mp3</string>
5
-    <string name="STREAM_URL_TSUMUGI">https://sstream.riff-radio.org/;stream.mp3</string>
5
+    <string name="STREAM_URL_RIFF">https://sstream.riff-radio.org/;stream.mp3</string>
6
     <string name="STREAM_URL_RSTLSS">https://sstream.riff-radio.org/;stream.mp3</string>
6
     <string name="STREAM_URL_RSTLSS">https://sstream.riff-radio.org/;stream.mp3</string>
7
     <string name="github_url_new_issue">https://git.pagelibre.org/riff/riff_app</string>
7
     <string name="github_url_new_issue">https://git.pagelibre.org/riff/riff_app</string>
8
     <string name="website_url">https://m.riff-radio.fr/</string>
8
     <string name="website_url">https://m.riff-radio.fr/</string>
33
     <string name="action_settings">Settings</string>
33
     <string name="action_settings">Settings</string>
34
     <string name="action_bug_submit">Submit a bug (GitHub)</string>
34
     <string name="action_bug_submit">Submit a bug (GitHub)</string>
35
 
35
 
36
-    <string name="nowPlayingNotificationChannel">Tsumugi Stream Service</string>
37
-    <string name="nowPlayingChannelId">fr.forum_thalie.tsumugi.PLAYER_SERVICE</string>
36
+    <string name="nowPlayingNotificationChannel">Riff Stream Service</string>
37
+    <string name="nowPlayingChannelId">fr.riff_app.riff.PLAYER_SERVICE</string>
38
 
38
 
39
     <string name="snackbarPersistent">Stay visible, can be closed with \"OK\" button</string>
39
     <string name="snackbarPersistent">Stay visible, can be closed with \"OK\" button</string>
40
     <string name="snackbarNonPersistent">Disappear after some time</string>
40
     <string name="snackbarNonPersistent">Disappear after some time</string>

+ 1 - 1
app/src/main/res/xml/alarm_preferences.xml View File

43
         android:title="@string/test_alarm_volume"
43
         android:title="@string/test_alarm_volume"
44
         android:summary="@string/test_alarm_volume_summary"
44
         android:summary="@string/test_alarm_volume_summary"
45
         app:icon="@drawable/ic_volume_high"
45
         app:icon="@drawable/ic_volume_high"
46
-        app:fragment="fr.forum_thalie.tsumugi.preferences.AlarmAdjustVolumeFragment"
46
+        app:fragment="fr.riff_app.riff.preferences.AlarmAdjustVolumeFragment"
47
         />
47
         />
48
 
48
 
49
 </PreferenceScreen>
49
 </PreferenceScreen>

+ 3 - 3
app/src/main/res/xml/preferences.xml View File

6
         app:icon="@drawable/ic_alarm"
6
         app:icon="@drawable/ic_alarm"
7
         app:key="alarmScreen"
7
         app:key="alarmScreen"
8
         app:title="@string/setupAlarmClock"
8
         app:title="@string/setupAlarmClock"
9
-        app:fragment="fr.forum_thalie.tsumugi.preferences.AlarmFragment"
9
+        app:fragment="fr.riff_app.riff.preferences.AlarmFragment"
10
         />
10
         />
11
 
11
 
12
     <Preference
12
     <Preference
13
         app:icon="@drawable/ic_av_timer"
13
         app:icon="@drawable/ic_av_timer"
14
         app:key="sleepScreen"
14
         app:key="sleepScreen"
15
         app:title="@string/setSleepTimer"
15
         app:title="@string/setSleepTimer"
16
-        app:fragment="fr.forum_thalie.tsumugi.preferences.SleepFragment"
16
+        app:fragment="fr.riff_app.riff.preferences.SleepFragment"
17
         />
17
         />
18
 
18
 
19
     <Preference
19
     <Preference
20
         app:icon="@drawable/ic_customize"
20
         app:icon="@drawable/ic_customize"
21
         app:key="CustomizeFragment"
21
         app:key="CustomizeFragment"
22
         app:title="@string/customizeAppBehavior"
22
         app:title="@string/customizeAppBehavior"
23
-        app:fragment="fr.forum_thalie.tsumugi.preferences.CustomizeFragment"
23
+        app:fragment="fr.riff_app.riff.preferences.CustomizeFragment"
24
         />
24
         />
25
 
25
 
26
     <Preference
26
     <Preference

+ 0 - 17
app/src/test/java/fr/forum_thalie/tsumugi/ExampleUnitTest.kt View File

1
-package fr.forum_thalie.tsumugi
2
-
3
-import org.junit.Test
4
-
5
-import org.junit.Assert.*
6
-
7
-/**
8
- * Example local unit test, which will execute on the development machine (host).
9
- *
10
- * See [testing documentation](http://d.android.com/tools/testing).
11
- */
12
-class ExampleUnitTest {
13
-    @Test
14
-    fun addition_isCorrect() {
15
-        assertEquals(4, 2 + 2)
16
-    }
17
-}

+ 1 - 1
settings.gradle View File

1
 include ':app'
1
 include ':app'
2
-rootProject.name='Tsumugi-app'
2
+rootProject.name='riff_app'