Browse Source

changed package name and some images

yattoz 5 years ago
parent
commit
d1fb81f615
73 changed files with 169 additions and 172 deletions
  1. 0 1
      .idea/.name
  2. 0 9
      .idea/dictionaries/dict.xml
  3. 0 6
      .idea/encodings.xml
  4. 1 1
      app/build.gradle
  5. 2 2
      app/src/androidTest/java/fr/forum_thalie/tsumugi/ExampleInstrumentedTest.kt
  6. 3 3
      app/src/main/AndroidManifest.xml
  7. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/Actions.kt
  8. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/Async.kt
  9. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/BaseActivity.kt
  10. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/BaseNotification.kt
  11. 6 6
      app/src/main/java/fr/forum_thalie/tsumugi/BootBroadcastReceiver.kt
  12. 6 6
      app/src/main/java/fr/forum_thalie/tsumugi/MainActivity.kt
  13. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/NavigationExtensions.kt
  14. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/NowPlayingNotification.kt
  15. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ParametersActivity.kt
  16. 5 5
      app/src/main/java/fr/forum_thalie/tsumugi/RadioService.kt
  17. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/Tickers.kt
  18. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/Values.kt
  19. 5 5
      app/src/main/java/fr/forum_thalie/tsumugi/alarm/RadioAlarm.kt
  20. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/alarm/RadioSleeper.kt
  21. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/playerstore/PlayerStore.kt
  22. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/playerstore/Song.kt
  23. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/preferences/AlarmFragment.kt
  24. 4 4
      app/src/main/java/fr/forum_thalie/tsumugi/preferences/CustomizeFragment.kt
  25. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/preferences/MainPreferenceFragment.kt
  26. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/preferences/SleepFragment.kt
  27. 6 6
      app/src/main/java/fr/forum_thalie/tsumugi/preferences/StreamerNotifServiceFragment.kt
  28. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/ServiceNotification.kt
  29. 4 4
      app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/StreamerMonitorExtensions.kt
  30. 4 4
      app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/StreamerMonitorService.kt
  31. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/StreamerNotification.kt
  32. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/WorkerStore.kt
  33. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/chat/ChatFragment.kt
  34. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/ui/chat/ChatViewModel.kt
  35. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/ui/chat/WebViewChat.kt
  36. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/ui/news/News.kt
  37. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsAdapter.kt
  38. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsFragment.kt
  39. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsViewModel.kt
  40. 5 5
      app/src/main/java/fr/forum_thalie/tsumugi/ui/nowplaying/NowPlayingFragment.kt
  41. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/nowplaying/NowPlayingViewModel.kt
  42. 8 8
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/SongsFragment.kt
  43. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/SongsPagerAdapter.kt
  44. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/LastPlayedFragment.kt
  45. 4 4
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/QueueFragment.kt
  46. 5 5
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/SongAdaptater.kt
  47. 1 1
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/CooldownCalculator.kt
  48. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/FavoritesFragment.kt
  49. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/RequestFragment.kt
  50. 2 2
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/RequestResponse.kt
  51. 3 3
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/RequestSongAdapter.kt
  52. 6 6
      app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/Requestor.kt
  53. 13 0
      app/src/main/res/drawable-anydpi-v24/lollipop_logo.xml
  54. BIN
      app/src/main/res/drawable-hdpi/lollipop_logo.png
  55. BIN
      app/src/main/res/drawable-mdpi/lollipop_logo.png
  56. BIN
      app/src/main/res/drawable-xhdpi/lollipop_logo.png
  57. BIN
      app/src/main/res/drawable-xxhdpi/lollipop_logo.png
  58. BIN
      app/src/main/res/drawable/actionbar_logo.9.png
  59. BIN
      app/src/main/res/drawable/actionbar_logo.jpg
  60. 1 1
      app/src/main/res/drawable/ic_launcher_background.xml
  61. BIN
      app/src/main/res/drawable/lollipop_logo.png
  62. BIN
      app/src/main/res/drawable/news_bg.png
  63. BIN
      app/src/main/res/drawable/splash_logo.jpg
  64. BIN
      app/src/main/res/drawable/splash_logo.png
  65. 1 1
      app/src/main/res/navigation/navigation_chat.xml
  66. 1 1
      app/src/main/res/navigation/navigation_news.xml
  67. 1 1
      app/src/main/res/navigation/navigation_nowplaying.xml
  68. 1 1
      app/src/main/res/navigation/navigation_songs.xml
  69. 1 1
      app/src/main/res/values/colors.xml
  70. 5 5
      app/src/main/res/values/strings.xml
  71. 4 4
      app/src/main/res/xml/preferences.xml
  72. 1 1
      app/src/test/java/fr/forum_thalie/tsumugi/ExampleUnitTest.kt
  73. 1 1
      build.gradle

+ 0 - 1
.idea/.name View File

1
-R-a-dio2

+ 0 - 9
.idea/dictionaries/dict.xml View File

1
-<component name="ProjectDictionaryState">
2
-  <dictionary name="dict">
3
-    <words>
4
-      <w>debouncing</w>
5
-      <w>requestable</w>
6
-      <w>requestor</w>
7
-    </words>
8
-  </dictionary>
9
-</component>

+ 0 - 6
.idea/encodings.xml View File

1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="Encoding">
4
-    <file url="PROJECT" charset="UTF-8" />
5
-  </component>
6
-</project>

+ 1 - 1
app/build.gradle View File

26
         jvmTarget = "1.8"
26
         jvmTarget = "1.8"
27
     }
27
     }
28
     defaultConfig {
28
     defaultConfig {
29
-        applicationId "io.r_a_d.radio2"
29
+        applicationId "fr.forum_thalie.tsumugi"
30
         minSdkVersion 16
30
         minSdkVersion 16
31
         targetSdkVersion 29
31
         targetSdkVersion 29
32
         versionCode 2
32
         versionCode 2

app/src/androidTest/java/io/r_a_d/radio2/ExampleInstrumentedTest.kt → app/src/androidTest/java/fr/forum_thalie/tsumugi/ExampleInstrumentedTest.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import androidx.test.platform.app.InstrumentationRegistry
3
 import androidx.test.platform.app.InstrumentationRegistry
4
 import androidx.test.ext.junit.runners.AndroidJUnit4
4
 import androidx.test.ext.junit.runners.AndroidJUnit4
19
     fun useAppContext() {
19
     fun useAppContext() {
20
         // Context of the app under test.
20
         // Context of the app under test.
21
         val appContext = InstrumentationRegistry.getInstrumentation().targetContext
21
         val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22
-        assertEquals("io.r_a_d.radio2", appContext.packageName)
22
+        assertEquals("fr.forum_thalie.tsumugi", appContext.packageName)
23
     }
23
     }
24
 }
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="io.r_a_d.radio2">
4
+    package="fr.forum_thalie.tsumugi">
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
             tools:targetApi="n">
40
             tools:targetApi="n">
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="io.r_a_d.radio2.PLAY_OR_FALLBACK" />
44
-                <action android:name="io.r_a_d.radio2.NOTIFY" /> <!-- this is for Snooze -->
43
+                <action android:name="fr.forum_thalie.tsumugi.PLAY_OR_FALLBACK" />
44
+                <action android:name="fr.forum_thalie.tsumugi.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/io/r_a_d/radio2/Actions.kt → app/src/main/java/fr/forum_thalie/tsumugi/Actions.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 enum class Actions
3
 enum class Actions
4
 {
4
 {

app/src/main/java/io/r_a_d/radio2/Async.kt → app/src/main/java/fr/forum_thalie/tsumugi/Async.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import android.os.AsyncTask
3
 import android.os.AsyncTask
4
 import android.util.Log
4
 import android.util.Log
5
-import io.r_a_d.radio2.playerstore.PlayerStore
5
+import fr.forum_thalie.tsumugi.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/io/r_a_d/radio2/BaseActivity.kt → app/src/main/java/fr/forum_thalie/tsumugi/BaseActivity.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
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/io/r_a_d/radio2/BaseNotification.kt → app/src/main/java/fr/forum_thalie/tsumugi/BaseNotification.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import android.app.Notification
3
 import android.app.Notification
4
 import android.app.NotificationChannel
4
 import android.app.NotificationChannel
69
 
69
 
70
         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
70
         if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
71
             builder.setSmallIcon(R.drawable.lollipop_logo)
71
             builder.setSmallIcon(R.drawable.lollipop_logo)
72
-            builder.color = -0x20b3c6
72
+            builder.color = -0xf58b01 // same color as Accent. Can't use c.getColor since it's API23+
73
         } else {
73
         } else {
74
             builder.setSmallIcon(R.drawable.normal_logo)
74
             builder.setSmallIcon(R.drawable.normal_logo)
75
         }
75
         }

app/src/main/java/io/r_a_d/radio2/BootBroadcastReceiver.kt → app/src/main/java/fr/forum_thalie/tsumugi/BootBroadcastReceiver.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
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 io.r_a_d.radio2.alarm.RadioAlarm
10
-import io.r_a_d.radio2.playerstore.PlayerStore
11
-import io.r_a_d.radio2.streamerNotificationService.WorkerStore
12
-import io.r_a_d.radio2.streamerNotificationService.startStreamerMonitor
9
+import fr.forum_thalie.tsumugi.alarm.RadioAlarm
10
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
11
+import fr.forum_thalie.tsumugi.streamerNotificationService.WorkerStore
12
+import fr.forum_thalie.tsumugi.streamerNotificationService.startStreamerMonitor
13
 
13
 
14
 class BootBroadcastReceiver : BroadcastReceiver(){
14
 class BootBroadcastReceiver : BroadcastReceiver(){
15
 
15
 
24
             RadioAlarm.instance.setNextAlarm(context) // schedule next alarm
24
             RadioAlarm.instance.setNextAlarm(context) // schedule next alarm
25
         }
25
         }
26
 
26
 
27
-        if (arg1.getStringExtra("action") == "io.r_a_d.radio2.${Actions.PLAY_OR_FALLBACK.name}" )
27
+        if (arg1.getStringExtra("action") == "fr.forum_thalie.tsumugi.${Actions.PLAY_OR_FALLBACK.name}" )
28
         {
28
         {
29
             RadioAlarm.instance.setNextAlarm(context) // schedule next alarm
29
             RadioAlarm.instance.setNextAlarm(context) // schedule next alarm
30
             if (PlayerStore.instance.streamerName.value.isNullOrBlank())
30
             if (PlayerStore.instance.streamerName.value.isNullOrBlank())

app/src/main/java/io/r_a_d/radio2/MainActivity.kt → app/src/main/java/fr/forum_thalie/tsumugi/MainActivity.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
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 io.r_a_d.radio2.playerstore.PlayerStore
14
+import fr.forum_thalie.tsumugi.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 androidx.preference.PreferenceManager
18
 import androidx.preference.PreferenceManager
19
 import com.google.android.material.snackbar.Snackbar
19
 import com.google.android.material.snackbar.Snackbar
20
-import io.r_a_d.radio2.alarm.RadioAlarm
21
-import io.r_a_d.radio2.streamerNotificationService.WorkerStore
22
-import io.r_a_d.radio2.streamerNotificationService.startStreamerMonitor
23
-import io.r_a_d.radio2.ui.songs.request.Requestor
20
+import fr.forum_thalie.tsumugi.alarm.RadioAlarm
21
+import fr.forum_thalie.tsumugi.streamerNotificationService.WorkerStore
22
+import fr.forum_thalie.tsumugi.streamerNotificationService.startStreamerMonitor
23
+import fr.forum_thalie.tsumugi.ui.songs.request.Requestor
24
 
24
 
25
 
25
 
26
 /* Log to file import
26
 /* Log to file import

app/src/main/java/io/r_a_d/radio2/NavigationExtensions.kt → app/src/main/java/fr/forum_thalie/tsumugi/NavigationExtensions.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 
3
 
4
 import android.content.Intent
4
 import android.content.Intent

app/src/main/java/io/r_a_d/radio2/NowPlayingNotification.kt → app/src/main/java/fr/forum_thalie/tsumugi/NowPlayingNotification.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import android.app.PendingIntent
3
 import android.app.PendingIntent
4
 import android.content.Context
4
 import android.content.Context
6
 import android.support.v4.media.session.MediaSessionCompat
6
 import android.support.v4.media.session.MediaSessionCompat
7
 import android.support.v4.media.session.PlaybackStateCompat
7
 import android.support.v4.media.session.PlaybackStateCompat
8
 import androidx.core.app.NotificationCompat
8
 import androidx.core.app.NotificationCompat
9
-import io.r_a_d.radio2.playerstore.PlayerStore
10
-import io.r_a_d.radio2.BootBroadcastReceiver
9
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
10
+import fr.forum_thalie.tsumugi.BootBroadcastReceiver
11
 
11
 
12
 class NowPlayingNotification(
12
 class NowPlayingNotification(
13
     notificationChannelId: String,
13
     notificationChannelId: String,

app/src/main/java/io/r_a_d/radio2/ParametersActivity.kt → app/src/main/java/fr/forum_thalie/tsumugi/ParametersActivity.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
-import io.r_a_d.radio2.preferences.*
4
+import fr.forum_thalie.tsumugi.preferences.*
5
 
5
 
6
 
6
 
7
 class ParametersActivity : BaseActivity() {
7
 class ParametersActivity : BaseActivity() {

app/src/main/java/io/r_a_d/radio2/RadioService.kt → app/src/main/java/fr/forum_thalie/tsumugi/RadioService.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import android.app.Service
3
 import android.app.Service
4
 import android.content.BroadcastReceiver
4
 import android.content.BroadcastReceiver
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 com.google.android.exoplayer2.trackselection.DefaultTrackSelector
35
 import com.google.android.exoplayer2.trackselection.DefaultTrackSelector
36
-import io.r_a_d.radio2.alarm.RadioAlarm
37
-import io.r_a_d.radio2.alarm.RadioSleeper
38
-import io.r_a_d.radio2.playerstore.PlayerStore
36
+import fr.forum_thalie.tsumugi.alarm.RadioAlarm
37
+import fr.forum_thalie.tsumugi.alarm.RadioSleeper
38
+import fr.forum_thalie.tsumugi.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
429
         )
429
         )
430
         // This is the MediaSource representing the media to be played.
430
         // This is the MediaSource representing the media to be played.
431
         radioMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
431
         radioMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
432
-            .createMediaSource(Uri.parse(getString(R.string.STREAM_URL_RADIO)))
432
+            .createMediaSource(Uri.parse(getString(R.string.STREAM_URL_TSUMUGI)))
433
 
433
 
434
         fallbackMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
434
         fallbackMediaSource = ProgressiveMediaSource.Factory(dataSourceFactory)
435
             .createMediaSource(Uri.parse("file:///android_asset/the_stream_is_down.mp3"))
435
             .createMediaSource(Uri.parse("file:///android_asset/the_stream_is_down.mp3"))

app/src/main/java/io/r_a_d/radio2/Tickers.kt → app/src/main/java/fr/forum_thalie/tsumugi/Tickers.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import android.support.v4.media.session.PlaybackStateCompat
3
 import android.support.v4.media.session.PlaybackStateCompat
4
-import io.r_a_d.radio2.alarm.RadioSleeper
5
-import io.r_a_d.radio2.playerstore.PlayerStore
4
+import fr.forum_thalie.tsumugi.alarm.RadioSleeper
5
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
6
 import java.util.*
6
 import java.util.*
7
 
7
 
8
 class Tick  : TimerTask() {
8
 class Tick  : TimerTask() {

app/src/main/java/io/r_a_d/radio2/Values.kt → app/src/main/java/fr/forum_thalie/tsumugi/Values.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
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
 
5
 
6
-const val tag = "io.r_a_d.radio2"
6
+const val tag = "fr.forum_thalie.tsumugi"
7
 const val noConnectionValue = "No connection"
7
 const val noConnectionValue = "No connection"
8
 var colorBlue: Int = 0
8
 var colorBlue: Int = 0
9
 var colorWhited: Int = 0
9
 var colorWhited: Int = 0

app/src/main/java/io/r_a_d/radio2/alarm/RadioAlarm.kt → app/src/main/java/fr/forum_thalie/tsumugi/alarm/RadioAlarm.kt View File

1
-package io.r_a_d.radio2.alarm
1
+package fr.forum_thalie.tsumugi.alarm
2
 
2
 
3
 import android.app.AlarmManager
3
 import android.app.AlarmManager
4
 import android.app.PendingIntent
4
 import android.app.PendingIntent
6
 import android.content.Intent
6
 import android.content.Intent
7
 import android.util.Log
7
 import android.util.Log
8
 import androidx.core.app.AlarmManagerCompat
8
 import androidx.core.app.AlarmManagerCompat
9
-import io.r_a_d.radio2.BootBroadcastReceiver
9
+import fr.forum_thalie.tsumugi.BootBroadcastReceiver
10
 import androidx.preference.PreferenceManager
10
 import androidx.preference.PreferenceManager
11
-import io.r_a_d.radio2.*
11
+import fr.forum_thalie.tsumugi.*
12
 import java.util.*
12
 import java.util.*
13
 
13
 
14
 class RadioAlarm {
14
 class RadioAlarm {
38
 
38
 
39
         val alarmManager = c.getSystemService(Context.ALARM_SERVICE) as AlarmManager
39
         val alarmManager = c.getSystemService(Context.ALARM_SERVICE) as AlarmManager
40
         alarmIntent = Intent(c, BootBroadcastReceiver::class.java).let { intent ->
40
         alarmIntent = Intent(c, BootBroadcastReceiver::class.java).let { intent ->
41
-            intent.putExtra("action", "io.r_a_d.radio2.${Actions.PLAY_OR_FALLBACK.name}")
41
+            intent.putExtra("action", "fr.forum_thalie.tsumugi.${Actions.PLAY_OR_FALLBACK.name}")
42
             PendingIntent.getBroadcast(c, 0, intent, 0)
42
             PendingIntent.getBroadcast(c, 0, intent, 0)
43
         }
43
         }
44
         val showIntent = Intent(c, ParametersActivity::class.java).let { intent ->
44
         val showIntent = Intent(c, ParametersActivity::class.java).let { intent ->
100
         {
100
         {
101
             val alarmManager = c.getSystemService(Context.ALARM_SERVICE) as AlarmManager
101
             val alarmManager = c.getSystemService(Context.ALARM_SERVICE) as AlarmManager
102
             alarmIntent = Intent(c, BootBroadcastReceiver::class.java).let { intent ->
102
             alarmIntent = Intent(c, BootBroadcastReceiver::class.java).let { intent ->
103
-                intent.putExtra("action", "io.r_a_d.radio2.${Actions.PLAY_OR_FALLBACK.name}")
103
+                intent.putExtra("action", "fr.forum_thalie.tsumugi.${Actions.PLAY_OR_FALLBACK.name}")
104
                 PendingIntent.getBroadcast(c, 0, intent, 0)
104
                 PendingIntent.getBroadcast(c, 0, intent, 0)
105
             }
105
             }
106
             val showIntent = Intent(c, ParametersActivity::class.java).let { intent ->
106
             val showIntent = Intent(c, ParametersActivity::class.java).let { intent ->

app/src/main/java/io/r_a_d/radio2/alarm/RadioSleeper.kt → app/src/main/java/fr/forum_thalie/tsumugi/alarm/RadioSleeper.kt View File

1
-package io.r_a_d.radio2.alarm
1
+package fr.forum_thalie.tsumugi.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 androidx.core.app.AlarmManagerCompat
8
 import androidx.core.app.AlarmManagerCompat
9
 import androidx.lifecycle.MutableLiveData
9
 import androidx.lifecycle.MutableLiveData
10
 import androidx.preference.PreferenceManager
10
 import androidx.preference.PreferenceManager
11
-import io.r_a_d.radio2.*
11
+import fr.forum_thalie.tsumugi.*
12
 
12
 
13
 class RadioSleeper {
13
 class RadioSleeper {
14
 
14
 

app/src/main/java/io/r_a_d/radio2/playerstore/PlayerStore.kt → app/src/main/java/fr/forum_thalie/tsumugi/playerstore/PlayerStore.kt View File

1
-package io.r_a_d.radio2.playerstore
1
+package fr.forum_thalie.tsumugi.playerstore
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.graphics.Bitmap
4
 import android.graphics.Bitmap
7
 import android.util.Log
7
 import android.util.Log
8
 import androidx.lifecycle.MutableLiveData
8
 import androidx.lifecycle.MutableLiveData
9
 import androidx.lifecycle.ViewModel
9
 import androidx.lifecycle.ViewModel
10
-import io.r_a_d.radio2.*
10
+import fr.forum_thalie.tsumugi.*
11
 import org.json.JSONObject
11
 import org.json.JSONObject
12
 import java.io.IOException
12
 import java.io.IOException
13
 import java.io.InputStream
13
 import java.io.InputStream

app/src/main/java/io/r_a_d/radio2/playerstore/Song.kt → app/src/main/java/fr/forum_thalie/tsumugi/playerstore/Song.kt View File

1
-package io.r_a_d.radio2.playerstore
1
+package fr.forum_thalie.tsumugi.playerstore
2
 
2
 
3
 import androidx.lifecycle.MutableLiveData
3
 import androidx.lifecycle.MutableLiveData
4
 
4
 

app/src/main/java/io/r_a_d/radio2/preferences/AlarmFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/preferences/AlarmFragment.kt View File

1
-package io.r_a_d.radio2.preferences
1
+package fr.forum_thalie.tsumugi.preferences
2
 
2
 
3
 import android.app.TimePickerDialog
3
 import android.app.TimePickerDialog
4
 import android.os.Bundle
4
 import android.os.Bundle
5
 import android.util.Log
5
 import android.util.Log
6
 import androidx.core.content.edit
6
 import androidx.core.content.edit
7
 import androidx.preference.*
7
 import androidx.preference.*
8
-import io.r_a_d.radio2.R
9
-import io.r_a_d.radio2.alarm.RadioAlarm
8
+import fr.forum_thalie.tsumugi.R
9
+import fr.forum_thalie.tsumugi.alarm.RadioAlarm
10
 import java.util.*
10
 import java.util.*
11
 
11
 
12
 class AlarmFragment : PreferenceFragmentCompat() {
12
 class AlarmFragment : PreferenceFragmentCompat() {

app/src/main/java/io/r_a_d/radio2/preferences/CustomizeFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/preferences/CustomizeFragment.kt View File

1
-package io.r_a_d.radio2.preferences
1
+package fr.forum_thalie.tsumugi.preferences
2
 
2
 
3
 import android.content.Intent
3
 import android.content.Intent
4
 import android.net.Uri
4
 import android.net.Uri
6
 import android.util.Log
6
 import android.util.Log
7
 import androidx.appcompat.app.AlertDialog
7
 import androidx.appcompat.app.AlertDialog
8
 import androidx.preference.*
8
 import androidx.preference.*
9
-import io.r_a_d.radio2.R
10
-import io.r_a_d.radio2.preferenceStore
11
-import io.r_a_d.radio2.ui.songs.request.Requestor
9
+import fr.forum_thalie.tsumugi.R
10
+import fr.forum_thalie.tsumugi.preferenceStore
11
+import fr.forum_thalie.tsumugi.ui.songs.request.Requestor
12
 
12
 
13
 class CustomizeFragment : PreferenceFragmentCompat() {
13
 class CustomizeFragment : PreferenceFragmentCompat() {
14
     override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
14
     override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {

app/src/main/java/io/r_a_d/radio2/preferences/MainPreferenceFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/preferences/MainPreferenceFragment.kt View File

1
-package io.r_a_d.radio2.preferences
1
+package fr.forum_thalie.tsumugi.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 io.r_a_d.radio2.R
6
+import fr.forum_thalie.tsumugi.R
7
 import android.annotation.SuppressLint
7
 import android.annotation.SuppressLint
8
 import androidx.preference.*
8
 import androidx.preference.*
9
 
9
 

app/src/main/java/io/r_a_d/radio2/preferences/SleepFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/preferences/SleepFragment.kt View File

1
-package io.r_a_d.radio2.preferences
1
+package fr.forum_thalie.tsumugi.preferences
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import androidx.preference.*
4
 import androidx.preference.*
5
-import io.r_a_d.radio2.R
5
+import fr.forum_thalie.tsumugi.R
6
 import android.text.InputType
6
 import android.text.InputType
7
-import io.r_a_d.radio2.alarm.RadioSleeper
7
+import fr.forum_thalie.tsumugi.alarm.RadioSleeper
8
 
8
 
9
 
9
 
10
 class SleepFragment : PreferenceFragmentCompat() {
10
 class SleepFragment : PreferenceFragmentCompat() {

app/src/main/java/io/r_a_d/radio2/preferences/StreamerNotifServiceFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/preferences/StreamerNotifServiceFragment.kt View File

1
-package io.r_a_d.radio2.preferences
1
+package fr.forum_thalie.tsumugi.preferences
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import androidx.appcompat.app.AlertDialog
4
 import androidx.appcompat.app.AlertDialog
5
 import androidx.preference.*
5
 import androidx.preference.*
6
-import io.r_a_d.radio2.R
7
-import io.r_a_d.radio2.preferenceStore
8
-import io.r_a_d.radio2.streamerNotificationService.WorkerStore
9
-import io.r_a_d.radio2.streamerNotificationService.startStreamerMonitor
10
-import io.r_a_d.radio2.streamerNotificationService.stopStreamerMonitor
6
+import fr.forum_thalie.tsumugi.R
7
+import fr.forum_thalie.tsumugi.preferenceStore
8
+import fr.forum_thalie.tsumugi.streamerNotificationService.WorkerStore
9
+import fr.forum_thalie.tsumugi.streamerNotificationService.startStreamerMonitor
10
+import fr.forum_thalie.tsumugi.streamerNotificationService.stopStreamerMonitor
11
 
11
 
12
 class StreamerNotifServiceFragment : PreferenceFragmentCompat() {
12
 class StreamerNotifServiceFragment : PreferenceFragmentCompat() {
13
     override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
13
     override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {

app/src/main/java/io/r_a_d/radio2/streamerNotificationService/ServiceNotification.kt → app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/ServiceNotification.kt View File

1
-package io.r_a_d.radio2.streamerNotificationService
1
+package fr.forum_thalie.tsumugi.streamerNotificationService
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
-import io.r_a_d.radio2.BaseNotification
4
+import fr.forum_thalie.tsumugi.BaseNotification
5
 import java.util.*
5
 import java.util.*
6
 
6
 
7
 class ServiceNotification(
7
 class ServiceNotification(

app/src/main/java/io/r_a_d/radio2/streamerNotificationService/StreamerMonitorExtensions.kt → app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/StreamerMonitorExtensions.kt View File

1
-package io.r_a_d.radio2.streamerNotificationService
1
+package fr.forum_thalie.tsumugi.streamerNotificationService
2
 
2
 
3
 import android.app.AlarmManager
3
 import android.app.AlarmManager
4
 import android.app.PendingIntent
4
 import android.app.PendingIntent
10
 import android.util.Log
10
 import android.util.Log
11
 import androidx.core.app.NotificationCompat
11
 import androidx.core.app.NotificationCompat
12
 import androidx.preference.PreferenceManager
12
 import androidx.preference.PreferenceManager
13
-import io.r_a_d.radio2.*
14
-import io.r_a_d.radio2.alarm.RadioAlarm
15
-import io.r_a_d.radio2.playerstore.PlayerStore
13
+import fr.forum_thalie.tsumugi.*
14
+import fr.forum_thalie.tsumugi.alarm.RadioAlarm
15
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
16
 import org.json.JSONObject
16
 import org.json.JSONObject
17
 import java.net.URL
17
 import java.net.URL
18
 
18
 

app/src/main/java/io/r_a_d/radio2/streamerNotificationService/StreamerMonitorService.kt → app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/StreamerMonitorService.kt View File

1
-package io.r_a_d.radio2.streamerNotificationService
1
+package fr.forum_thalie.tsumugi.streamerNotificationService
2
 
2
 
3
 
3
 
4
 import android.app.Service
4
 import android.app.Service
9
 import androidx.core.app.NotificationCompat
9
 import androidx.core.app.NotificationCompat
10
 import androidx.lifecycle.Observer
10
 import androidx.lifecycle.Observer
11
 import androidx.preference.PreferenceManager
11
 import androidx.preference.PreferenceManager
12
-import io.r_a_d.radio2.Actions
13
-import io.r_a_d.radio2.R
14
-import io.r_a_d.radio2.tag
12
+import fr.forum_thalie.tsumugi.Actions
13
+import fr.forum_thalie.tsumugi.R
14
+import fr.forum_thalie.tsumugi.tag
15
 import java.util.*
15
 import java.util.*
16
 
16
 
17
 class StreamerMonitorService : Service() {
17
 class StreamerMonitorService : Service() {

app/src/main/java/io/r_a_d/radio2/streamerNotificationService/StreamerNotification.kt → app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/StreamerNotification.kt View File

1
-package io.r_a_d.radio2.streamerNotificationService
1
+package fr.forum_thalie.tsumugi.streamerNotificationService
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
-import io.r_a_d.radio2.BaseNotification
4
+import fr.forum_thalie.tsumugi.BaseNotification
5
 import java.util.*
5
 import java.util.*
6
 
6
 
7
 class StreamerNotification(
7
 class StreamerNotification(

app/src/main/java/io/r_a_d/radio2/streamerNotificationService/WorkerStore.kt → app/src/main/java/fr/forum_thalie/tsumugi/streamerNotificationService/WorkerStore.kt View File

1
-package io.r_a_d.radio2.streamerNotificationService
1
+package fr.forum_thalie.tsumugi.streamerNotificationService
2
 
2
 
3
 import android.content.Context
3
 import android.content.Context
4
 import android.util.Log
4
 import android.util.Log
6
 import androidx.lifecycle.MutableLiveData
6
 import androidx.lifecycle.MutableLiveData
7
 import androidx.lifecycle.Observer
7
 import androidx.lifecycle.Observer
8
 import androidx.preference.PreferenceManager
8
 import androidx.preference.PreferenceManager
9
-import io.r_a_d.radio2.R
10
-import io.r_a_d.radio2.tag
9
+import fr.forum_thalie.tsumugi.R
10
+import fr.forum_thalie.tsumugi.tag
11
 
11
 
12
 class WorkerStore {
12
 class WorkerStore {
13
     companion object {
13
     companion object {

app/src/main/java/io/r_a_d/radio2/ui/chat/ChatFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/chat/ChatFragment.kt View File

1
-package io.r_a_d.radio2.ui.chat
1
+package fr.forum_thalie.tsumugi.ui.chat
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.util.Log
4
 import android.util.Log
9
 import android.webkit.WebView
9
 import android.webkit.WebView
10
 import androidx.fragment.app.Fragment
10
 import androidx.fragment.app.Fragment
11
 import androidx.lifecycle.ViewModelProviders
11
 import androidx.lifecycle.ViewModelProviders
12
-import io.r_a_d.radio2.R
12
+import fr.forum_thalie.tsumugi.R
13
 
13
 
14
 
14
 
15
 class ChatFragment : Fragment() {
15
 class ChatFragment : Fragment() {

app/src/main/java/io/r_a_d/radio2/ui/chat/ChatViewModel.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/chat/ChatViewModel.kt View File

1
-package io.r_a_d.radio2.ui.chat
1
+package fr.forum_thalie.tsumugi.ui.chat
2
 
2
 
3
 import android.view.View
3
 import android.view.View
4
 import android.webkit.WebView
4
 import android.webkit.WebView

app/src/main/java/io/r_a_d/radio2/ui/chat/WebViewChat.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/chat/WebViewChat.kt View File

1
-package io.r_a_d.radio2.ui.chat
1
+package fr.forum_thalie.tsumugi.ui.chat
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/io/r_a_d/radio2/ui/news/News.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/news/News.kt View File

1
-package io.r_a_d.radio2.ui.news
1
+package fr.forum_thalie.tsumugi.ui.news
2
 
2
 
3
 import java.util.*
3
 import java.util.*
4
 
4
 

app/src/main/java/io/r_a_d/radio2/ui/news/NewsAdapter.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsAdapter.kt View File

1
-package io.r_a_d.radio2.ui.news
1
+package fr.forum_thalie.tsumugi.ui.news
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.widget.TextView
4
 import android.widget.TextView
8
 import androidx.core.text.HtmlCompat
8
 import androidx.core.text.HtmlCompat
9
 import androidx.core.widget.TextViewCompat
9
 import androidx.core.widget.TextViewCompat
10
 import androidx.recyclerview.widget.RecyclerView
10
 import androidx.recyclerview.widget.RecyclerView
11
-import io.r_a_d.radio2.R
11
+import fr.forum_thalie.tsumugi.R
12
 import kotlin.collections.ArrayList
12
 import kotlin.collections.ArrayList
13
 
13
 
14
 class NewsAdapter(private val dataSet: ArrayList<News>
14
 class NewsAdapter(private val dataSet: ArrayList<News>

app/src/main/java/io/r_a_d/radio2/ui/news/NewsFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsFragment.kt View File

1
-package io.r_a_d.radio2.ui.news
1
+package fr.forum_thalie.tsumugi.ui.news
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.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 io.r_a_d.radio2.R
12
+import fr.forum_thalie.tsumugi.R
13
 
13
 
14
 class NewsFragment : Fragment() {
14
 class NewsFragment : Fragment() {
15
 
15
 

app/src/main/java/io/r_a_d/radio2/ui/news/NewsViewModel.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/news/NewsViewModel.kt View File

1
-package io.r_a_d.radio2.ui.news
1
+package fr.forum_thalie.tsumugi.ui.news
2
 
2
 
3
 import android.util.Log
3
 import android.util.Log
4
 import androidx.lifecycle.ViewModel
4
 import androidx.lifecycle.ViewModel
5
 import androidx.recyclerview.widget.RecyclerView
5
 import androidx.recyclerview.widget.RecyclerView
6
-import io.r_a_d.radio2.Async
7
-import io.r_a_d.radio2.tag
6
+import fr.forum_thalie.tsumugi.Async
7
+import fr.forum_thalie.tsumugi.tag
8
 import org.json.JSONArray
8
 import org.json.JSONArray
9
 import org.json.JSONObject
9
 import org.json.JSONObject
10
 import java.net.URL
10
 import java.net.URL

app/src/main/java/io/r_a_d/radio2/ui/nowplaying/NowPlayingFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/nowplaying/NowPlayingFragment.kt View File

1
-package io.r_a_d.radio2.ui.nowplaying
1
+package fr.forum_thalie.tsumugi.ui.nowplaying
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.content.ClipboardManager
4
 import android.content.ClipboardManager
19
 import androidx.lifecycle.Observer
19
 import androidx.lifecycle.Observer
20
 import com.google.android.material.snackbar.BaseTransientBottomBar
20
 import com.google.android.material.snackbar.BaseTransientBottomBar
21
 import com.google.android.material.snackbar.Snackbar
21
 import com.google.android.material.snackbar.Snackbar
22
-import io.r_a_d.radio2.*
23
-import io.r_a_d.radio2.alarm.RadioSleeper
24
-import io.r_a_d.radio2.playerstore.PlayerStore
25
-import io.r_a_d.radio2.playerstore.Song
22
+import fr.forum_thalie.tsumugi.*
23
+import fr.forum_thalie.tsumugi.alarm.RadioSleeper
24
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
25
+import fr.forum_thalie.tsumugi.playerstore.Song
26
 
26
 
27
 
27
 
28
 class NowPlayingFragment : Fragment() {
28
 class NowPlayingFragment : Fragment() {

app/src/main/java/io/r_a_d/radio2/ui/nowplaying/NowPlayingViewModel.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/nowplaying/NowPlayingViewModel.kt View File

1
-package io.r_a_d.radio2.ui.nowplaying
1
+package fr.forum_thalie.tsumugi.ui.nowplaying
2
 
2
 
3
 import android.widget.SeekBar
3
 import android.widget.SeekBar
4
 import androidx.lifecycle.MutableLiveData
4
 import androidx.lifecycle.MutableLiveData
5
 import androidx.lifecycle.ViewModel
5
 import androidx.lifecycle.ViewModel
6
-import io.r_a_d.radio2.playerstore.PlayerStore
6
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
7
 
7
 
8
 class NowPlayingViewModel: ViewModel() {
8
 class NowPlayingViewModel: ViewModel() {
9
 
9
 

app/src/main/java/io/r_a_d/radio2/ui/songs/SongsFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/SongsFragment.kt View File

1
-package io.r_a_d.radio2.ui.songs
1
+package fr.forum_thalie.tsumugi.ui.songs
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.util.Log
4
 import android.util.Log
14
 import com.google.android.material.snackbar.BaseTransientBottomBar
14
 import com.google.android.material.snackbar.BaseTransientBottomBar
15
 import com.google.android.material.snackbar.Snackbar
15
 import com.google.android.material.snackbar.Snackbar
16
 import com.google.android.material.tabs.TabLayout
16
 import com.google.android.material.tabs.TabLayout
17
-import io.r_a_d.radio2.R
18
-import io.r_a_d.radio2.preferenceStore
19
-import io.r_a_d.radio2.ui.songs.queuelp.LastPlayedFragment
20
-import io.r_a_d.radio2.ui.songs.queuelp.QueueFragment
21
-import io.r_a_d.radio2.ui.songs.request.FavoritesFragment
22
-import io.r_a_d.radio2.ui.songs.request.RequestFragment
23
-import io.r_a_d.radio2.ui.songs.request.Requestor
17
+import fr.forum_thalie.tsumugi.R
18
+import fr.forum_thalie.tsumugi.preferenceStore
19
+import fr.forum_thalie.tsumugi.ui.songs.queuelp.LastPlayedFragment
20
+import fr.forum_thalie.tsumugi.ui.songs.queuelp.QueueFragment
21
+import fr.forum_thalie.tsumugi.ui.songs.request.FavoritesFragment
22
+import fr.forum_thalie.tsumugi.ui.songs.request.RequestFragment
23
+import fr.forum_thalie.tsumugi.ui.songs.request.Requestor
24
 
24
 
25
 class SongsFragment : Fragment() {
25
 class SongsFragment : Fragment() {
26
 
26
 

app/src/main/java/io/r_a_d/radio2/ui/songs/SongsPagerAdapter.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/SongsPagerAdapter.kt View File

1
-package io.r_a_d.radio2.ui.songs
1
+package fr.forum_thalie.tsumugi.ui.songs
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/io/r_a_d/radio2/ui/songs/queuelp/LastPlayedFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/LastPlayedFragment.kt View File

1
-package io.r_a_d.radio2.ui.songs.queuelp
1
+package fr.forum_thalie.tsumugi.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 io.r_a_d.radio2.R
13
-import io.r_a_d.radio2.playerstore.PlayerStore
12
+import fr.forum_thalie.tsumugi.R
13
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
14
 
14
 
15
 /**
15
 /**
16
  * A simple [Fragment] subclass.
16
  * A simple [Fragment] subclass.

app/src/main/java/io/r_a_d/radio2/ui/songs/queuelp/QueueFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/QueueFragment.kt View File

1
-package io.r_a_d.radio2.ui.songs.queuelp
1
+package fr.forum_thalie.tsumugi.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 io.r_a_d.radio2.R
13
-import io.r_a_d.radio2.playerstore.PlayerStore
14
-import io.r_a_d.radio2.playerstore.Song
12
+import fr.forum_thalie.tsumugi.R
13
+import fr.forum_thalie.tsumugi.playerstore.PlayerStore
14
+import fr.forum_thalie.tsumugi.playerstore.Song
15
 
15
 
16
 class QueueFragment : Fragment(){
16
 class QueueFragment : Fragment(){
17
     private val lastPlayedFragmentTag = this::class.java.name
17
     private val lastPlayedFragmentTag = this::class.java.name

app/src/main/java/io/r_a_d/radio2/ui/songs/queuelp/SongAdaptater.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/queuelp/SongAdaptater.kt View File

1
-package io.r_a_d.radio2.ui.songs.queuelp
1
+package fr.forum_thalie.tsumugi.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
7
 import androidx.constraintlayout.widget.ConstraintLayout
7
 import androidx.constraintlayout.widget.ConstraintLayout
8
 import androidx.core.content.res.ResourcesCompat
8
 import androidx.core.content.res.ResourcesCompat
9
 import androidx.recyclerview.widget.RecyclerView
9
 import androidx.recyclerview.widget.RecyclerView
10
-import io.r_a_d.radio2.R
11
-import io.r_a_d.radio2.colorBlue
12
-import io.r_a_d.radio2.colorWhited
13
-import io.r_a_d.radio2.playerstore.Song
10
+import fr.forum_thalie.tsumugi.R
11
+import fr.forum_thalie.tsumugi.colorBlue
12
+import fr.forum_thalie.tsumugi.colorWhited
13
+import fr.forum_thalie.tsumugi.playerstore.Song
14
 import kotlinx.android.synthetic.main.song_view.view.*
14
 import kotlinx.android.synthetic.main.song_view.view.*
15
 import kotlin.collections.ArrayList
15
 import kotlin.collections.ArrayList
16
 
16
 

app/src/main/java/io/r_a_d/radio2/ui/songs/request/CooldownCalculator.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/CooldownCalculator.kt View File

1
-package io.r_a_d.radio2.ui.songs.request
1
+package fr.forum_thalie.tsumugi.ui.songs.request
2
 
2
 
3
 import kotlin.math.exp
3
 import kotlin.math.exp
4
 import kotlin.math.max
4
 import kotlin.math.max

app/src/main/java/io/r_a_d/radio2/ui/songs/request/FavoritesFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/FavoritesFragment.kt View File

1
-package io.r_a_d.radio2.ui.songs.request
1
+package fr.forum_thalie.tsumugi.ui.songs.request
2
 
2
 
3
 import android.os.Build
3
 import android.os.Build
4
 import android.os.Bundle
4
 import android.os.Bundle
14
 import androidx.recyclerview.widget.LinearLayoutManager
14
 import androidx.recyclerview.widget.LinearLayoutManager
15
 import androidx.recyclerview.widget.RecyclerView
15
 import androidx.recyclerview.widget.RecyclerView
16
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
16
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
17
-import io.r_a_d.radio2.*
17
+import fr.forum_thalie.tsumugi.*
18
 
18
 
19
 
19
 
20
 class FavoritesFragment : Fragment()  {
20
 class FavoritesFragment : Fragment()  {

app/src/main/java/io/r_a_d/radio2/ui/songs/request/RequestFragment.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/RequestFragment.kt View File

1
-package io.r_a_d.radio2.ui.songs.request
1
+package fr.forum_thalie.tsumugi.ui.songs.request
2
 
2
 
3
 import android.os.Bundle
3
 import android.os.Bundle
4
 import android.util.Log
4
 import android.util.Log
11
 import androidx.recyclerview.widget.LinearLayoutManager
11
 import androidx.recyclerview.widget.LinearLayoutManager
12
 import androidx.recyclerview.widget.RecyclerView
12
 import androidx.recyclerview.widget.RecyclerView
13
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
13
 import androidx.swiperefreshlayout.widget.SwipeRefreshLayout
14
-import io.r_a_d.radio2.R
14
+import fr.forum_thalie.tsumugi.R
15
 
15
 
16
 class RequestFragment : Fragment() {
16
 class RequestFragment : Fragment() {
17
 
17
 

app/src/main/java/io/r_a_d/radio2/ui/songs/request/RequestResponse.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/RequestResponse.kt View File

1
-package io.r_a_d.radio2.ui.songs.request
1
+package fr.forum_thalie.tsumugi.ui.songs.request
2
 
2
 
3
-import io.r_a_d.radio2.playerstore.Song
3
+import fr.forum_thalie.tsumugi.playerstore.Song
4
 import org.json.JSONObject
4
 import org.json.JSONObject
5
 
5
 
6
 class RequestResponse(jsonResponse: JSONObject) {
6
 class RequestResponse(jsonResponse: JSONObject) {

app/src/main/java/io/r_a_d/radio2/ui/songs/request/RequestSongAdapter.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/RequestSongAdapter.kt View File

1
-package io.r_a_d.radio2.ui.songs.request
1
+package fr.forum_thalie.tsumugi.ui.songs.request
2
 
2
 
3
 import android.annotation.SuppressLint
3
 import android.annotation.SuppressLint
4
 import android.os.Build
4
 import android.os.Build
9
 import androidx.constraintlayout.widget.ConstraintLayout
9
 import androidx.constraintlayout.widget.ConstraintLayout
10
 import androidx.core.widget.TextViewCompat
10
 import androidx.core.widget.TextViewCompat
11
 import androidx.recyclerview.widget.RecyclerView
11
 import androidx.recyclerview.widget.RecyclerView
12
-import io.r_a_d.radio2.*
13
-import io.r_a_d.radio2.playerstore.Song
12
+import fr.forum_thalie.tsumugi.*
13
+import fr.forum_thalie.tsumugi.playerstore.Song
14
 import kotlinx.android.synthetic.main.request_song_view.view.*
14
 import kotlinx.android.synthetic.main.request_song_view.view.*
15
 import android.view.View
15
 import android.view.View
16
 import kotlinx.android.synthetic.main.button_load_more.view.*
16
 import kotlinx.android.synthetic.main.button_load_more.view.*

app/src/main/java/io/r_a_d/radio2/ui/songs/request/Requestor.kt → app/src/main/java/fr/forum_thalie/tsumugi/ui/songs/request/Requestor.kt View File

1
-package io.r_a_d.radio2.ui.songs.request
1
+package fr.forum_thalie.tsumugi.ui.songs.request
2
 
2
 
3
 import android.util.Log
3
 import android.util.Log
4
 import androidx.lifecycle.MutableLiveData
4
 import androidx.lifecycle.MutableLiveData
5
-import io.r_a_d.radio2.ActionOnError
6
-import io.r_a_d.radio2.Async
7
-import io.r_a_d.radio2.playerstore.Song
8
-import io.r_a_d.radio2.preferenceStore
9
-import io.r_a_d.radio2.tag
5
+import fr.forum_thalie.tsumugi.ActionOnError
6
+import fr.forum_thalie.tsumugi.Async
7
+import fr.forum_thalie.tsumugi.playerstore.Song
8
+import fr.forum_thalie.tsumugi.preferenceStore
9
+import fr.forum_thalie.tsumugi.tag
10
 import org.json.JSONArray
10
 import org.json.JSONArray
11
 import org.json.JSONException
11
 import org.json.JSONException
12
 import org.json.JSONObject
12
 import org.json.JSONObject

+ 13 - 0
app/src/main/res/drawable-anydpi-v24/lollipop_logo.xml View File

1
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
+    android:width="24dp"
3
+    android:height="24dp"
4
+    android:viewportWidth="26.086956"
5
+    android:viewportHeight="26.086956"
6
+    android:tint="#FFFFFF">
7
+  <group android:translateX="1.0434783"
8
+      android:translateY="1.0434783">
9
+      <path
10
+          android:fillColor="#FF000000"
11
+          android:pathData="M3.24,6.15C2.51,6.43 2,7.17 2,8v12c0,1.1 0.89,2 2,2h16c1.11,0 2,-0.9 2,-2L22,8c0,-1.11 -0.89,-2 -2,-2L8.3,6l8.26,-3.34L15.88,1 3.24,6.15zM7,20c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM20,12h-2v-2h-2v2L4,12L4,8h16v4z"/>
12
+  </group>
13
+</vector>

BIN
app/src/main/res/drawable-hdpi/lollipop_logo.png View File


BIN
app/src/main/res/drawable-mdpi/lollipop_logo.png View File


BIN
app/src/main/res/drawable-xhdpi/lollipop_logo.png View File


BIN
app/src/main/res/drawable-xxhdpi/lollipop_logo.png View File


BIN
app/src/main/res/drawable/actionbar_logo.9.png View File


BIN
app/src/main/res/drawable/actionbar_logo.jpg View File


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

6
     android:viewportHeight="108"
6
     android:viewportHeight="108"
7
     >
7
     >
8
     <path
8
     <path
9
-        android:fillColor="@color/orange"
9
+        android:fillColor="@color/colorAccent"
10
         android:pathData="M0,0h108v108h-108z" />
10
         android:pathData="M0,0h108v108h-108z" />
11
 </vector>
11
 </vector>

BIN
app/src/main/res/drawable/lollipop_logo.png View File


BIN
app/src/main/res/drawable/news_bg.png View File


BIN
app/src/main/res/drawable/splash_logo.jpg View File


BIN
app/src/main/res/drawable/splash_logo.png View File


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

7
     tools:ignore="UnusedNavigation">
7
     tools:ignore="UnusedNavigation">
8
     <fragment
8
     <fragment
9
         android:id="@+id/fragment_chat"
9
         android:id="@+id/fragment_chat"
10
-        android:name="io.r_a_d.radio2.ui.chat.ChatFragment"
10
+        android:name="fr.forum_thalie.tsumugi.ui.chat.ChatFragment"
11
         android:label="@string/title_chat"
11
         android:label="@string/title_chat"
12
         tools:layout="@layout/fragment_chat" />
12
         tools:layout="@layout/fragment_chat" />
13
 </navigation>
13
 </navigation>

+ 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="io.r_a_d.radio2.ui.news.NewsFragment"
10
+        android:name="fr.forum_thalie.tsumugi.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="io.r_a_d.radio2.ui.nowplaying.NowPlayingFragment"
11
+        android:name="fr.forum_thalie.tsumugi.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_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="io.r_a_d.radio2.ui.songs.SongsFragment"
10
+        android:name="fr.forum_thalie.tsumugi.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>

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

2
 <resources>
2
 <resources>
3
     <color name="colorPrimary">#333333</color>
3
     <color name="colorPrimary">#333333</color>
4
     <color name="colorPrimaryDark">#222222</color>
4
     <color name="colorPrimaryDark">#222222</color>
5
-    <color name="colorAccent">#DF4C3A</color>
5
+    <color name="colorAccent">#f58b01</color>
6
     <color name="dark">#454545</color>
6
     <color name="dark">#454545</color>
7
     <color name="orange">#DF4C3A</color>
7
     <color name="orange">#DF4C3A</color>
8
     <color name="whited">#DDDDDD</color>
8
     <color name="whited">#DDDDDD</color>

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

1
 <resources>
1
 <resources>
2
-    <string name="app_name">R/a/dio2</string>
3
-    <string name="title_nowplaying">R/a/dio</string>
2
+    <string name="app_name">Tsumugi</string>
3
+    <string name="title_nowplaying">Tsumugi</string>
4
     <string name="title_queue_lp">Songs</string>
4
     <string name="title_queue_lp">Songs</string>
5
     <string name="title_chat">Chat</string>
5
     <string name="title_chat">Chat</string>
6
     <string name="title_news">News</string>
6
     <string name="title_news">News</string>
34
     <string name="ra_f">.ra f</string>
34
     <string name="ra_f">.ra f</string>
35
 
35
 
36
     <string name="nowPlayingNotificationChannel">R/a/dio Stream Service</string>
36
     <string name="nowPlayingNotificationChannel">R/a/dio Stream Service</string>
37
-    <string name="nowPlayingChannelId">io.r_a_d.radio2.PLAYER_SERVICE</string>
37
+    <string name="nowPlayingChannelId">fr.forum_thalie.tsumugi.PLAYER_SERVICE</string>
38
 
38
 
39
     <string name="streamerServiceChannel">Streamer Monitor Service</string>
39
     <string name="streamerServiceChannel">Streamer Monitor Service</string>
40
-    <string name="streamerServiceChannelId">io.r_a_d.radio2.STREAMER_NOTIFICATION_SERVICE</string>
40
+    <string name="streamerServiceChannelId">fr.forum_thalie.tsumugi.STREAMER_NOTIFICATION_SERVICE</string>
41
 
41
 
42
     <string name="streamerNotificationChannel">New Streamer Notification</string>
42
     <string name="streamerNotificationChannel">New Streamer Notification</string>
43
-    <string name="streamerNotificationChannelId">io.r_a_d.radio2.STREAMER_NOTIFICATION_NEW</string>
43
+    <string name="streamerNotificationChannelId">fr.forum_thalie.tsumugi.STREAMER_NOTIFICATION_NEW</string>
44
     <string name="warningStreamerNotif">
44
     <string name="warningStreamerNotif">
45
         This feature is EXPERIMENTAL.
45
         This feature is EXPERIMENTAL.
46
         \nIt WILL consume your battery by polling the server regularly.
46
         \nIt WILL consume your battery by polling the server regularly.

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

8
         app:icon="@drawable/ic_alarm"
8
         app:icon="@drawable/ic_alarm"
9
         app:key="alarmScreen"
9
         app:key="alarmScreen"
10
         app:title="Set up alarm clock"
10
         app:title="Set up alarm clock"
11
-        app:fragment="io.r_a_d.radio2.preferences.AlarmFragment"
11
+        app:fragment="fr.forum_thalie.tsumugi.preferences.AlarmFragment"
12
         />
12
         />
13
 
13
 
14
     <Preference
14
     <Preference
15
         app:icon="@drawable/ic_av_timer"
15
         app:icon="@drawable/ic_av_timer"
16
         app:key="sleepScreen"
16
         app:key="sleepScreen"
17
         app:title="Set sleep timer"
17
         app:title="Set sleep timer"
18
-        app:fragment="io.r_a_d.radio2.preferences.SleepFragment"
18
+        app:fragment="fr.forum_thalie.tsumugi.preferences.SleepFragment"
19
         />
19
         />
20
 
20
 
21
     <Preference
21
     <Preference
22
         app:icon="@drawable/ic_customize"
22
         app:icon="@drawable/ic_customize"
23
         app:key="CustomizeFragment"
23
         app:key="CustomizeFragment"
24
         app:title="Customize app behavior"
24
         app:title="Customize app behavior"
25
-        app:fragment="io.r_a_d.radio2.preferences.CustomizeFragment"
25
+        app:fragment="fr.forum_thalie.tsumugi.preferences.CustomizeFragment"
26
         />
26
         />
27
 
27
 
28
     <Preference
28
     <Preference
29
         app:icon="@drawable/ic_notification"
29
         app:icon="@drawable/ic_notification"
30
         app:key="streamerNotifServiceFragment"
30
         app:key="streamerNotifServiceFragment"
31
         app:title="Streamer Notification Service"
31
         app:title="Streamer Notification Service"
32
-        app:fragment="io.r_a_d.radio2.preferences.StreamerNotifServiceFragment"
32
+        app:fragment="fr.forum_thalie.tsumugi.preferences.StreamerNotifServiceFragment"
33
         />
33
         />
34
 
34
 
35
     <Preference
35
     <Preference

app/src/test/java/io/r_a_d/radio2/ExampleUnitTest.kt → app/src/test/java/fr/forum_thalie/tsumugi/ExampleUnitTest.kt View File

1
-package io.r_a_d.radio2
1
+package fr.forum_thalie.tsumugi
2
 
2
 
3
 import org.junit.Test
3
 import org.junit.Test
4
 
4
 

+ 1 - 1
build.gradle View File

1
 // Top-level build file where you can add configuration options common to all sub-projects/modules.
1
 // Top-level build file where you can add configuration options common to all sub-projects/modules.
2
 
2
 
3
 buildscript {
3
 buildscript {
4
-    ext.kotlin_version = '1.3.60'
4
+    ext.kotlin_version = '1.3.61'
5
     repositories {
5
     repositories {
6
         google()
6
         google()
7
         jcenter()
7
         jcenter()