Update key/action constant formatting
Use a more consistent APP_ID + .action/.key + NAME structure for key and action constants.
This commit is contained in:
parent
ec3e388071
commit
1b91930621
3 changed files with 9 additions and 11 deletions
|
@ -99,6 +99,6 @@ class MainActivity : AppCompatActivity() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val KEY_INTENT_USED = "KEY_FILE_INTENT_USED"
|
||||
private const val KEY_INTENT_USED = BuildConfig.APPLICATION_ID + ".key.FILE_INTENT_USED"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,16 +170,14 @@ class PlaybackNotification private constructor(
|
|||
companion object {
|
||||
const val CHANNEL_ID = "CHANNEL_AUXIO_PLAYBACK"
|
||||
const val NOTIFICATION_ID = 0xA0A0
|
||||
const val REQUEST_CODE = 0xA0AA
|
||||
const val REQUEST_CODE = 0xA0C0
|
||||
|
||||
// Build type is added to the codes so that dual release/debug installations dont conflict
|
||||
// with each other.
|
||||
const val ACTION_LOOP = "ACTION_AUXIO_LOOP_" + BuildConfig.BUILD_TYPE
|
||||
const val ACTION_SHUFFLE = "ACTION_AUXIO_SHUFFLE_" + BuildConfig.BUILD_TYPE
|
||||
const val ACTION_SKIP_PREV = "ACTION_AUXIO_SKIP_PREV_" + BuildConfig.BUILD_TYPE
|
||||
const val ACTION_PLAY_PAUSE = "ACTION_AUXIO_PLAY_PAUSE_" + BuildConfig.BUILD_TYPE
|
||||
const val ACTION_SKIP_NEXT = "ACTION_AUXIO_SKIP_NEXT_" + BuildConfig.BUILD_TYPE
|
||||
const val ACTION_EXIT = "ACTION_AUXIO_EXIT_" + BuildConfig.BUILD_TYPE
|
||||
const val ACTION_LOOP = BuildConfig.APPLICATION_ID + ".action.LOOP"
|
||||
const val ACTION_SHUFFLE = BuildConfig.APPLICATION_ID + ".action.SHUFFLE"
|
||||
const val ACTION_SKIP_PREV = BuildConfig.APPLICATION_ID + ".action.PREV"
|
||||
const val ACTION_PLAY_PAUSE = BuildConfig.APPLICATION_ID + ".action.PLAY_PAUSE"
|
||||
const val ACTION_SKIP_NEXT = BuildConfig.APPLICATION_ID + ".action.NEXT"
|
||||
const val ACTION_EXIT = BuildConfig.APPLICATION_ID + ".action.EXIT"
|
||||
|
||||
/**
|
||||
* Build a new instance of [PlaybackNotification].
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<item name="android:windowIsFloating">false</item>
|
||||
<item name="android:textCursorDrawable">@drawable/ui_cursor</item>
|
||||
|
||||
<!-- Interim default values for the accents. -->
|
||||
<!-- Default values for the accents. -->
|
||||
<item name="colorPrimary">@color/design_default_color_primary</item>
|
||||
<item name="colorSecondary">@color/design_default_color_primary</item>
|
||||
|
||||
|
|
Loading…
Reference in a new issue