Extract hardcoded strings into strings.xml and improve them

This commit is contained in:
Stypox 2020-08-16 00:01:43 +02:00
parent c79997ebe3
commit 7766fd13fd
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
4 changed files with 144 additions and 129 deletions

View file

@ -208,15 +208,15 @@ public final class NotificationUtil {
private void initializeNotificationSlots(final VideoPlayerImpl player) {
notificationSlot0 = player.sharedPreferences.getString(
player.context.getString(R.string.notification_slot_0_key), notificationSlot0);
player.context.getString(R.string.notification_action_0_key), notificationSlot0);
notificationSlot1 = player.sharedPreferences.getString(
player.context.getString(R.string.notification_slot_1_key), notificationSlot1);
player.context.getString(R.string.notification_action_1_key), notificationSlot1);
notificationSlot2 = player.sharedPreferences.getString(
player.context.getString(R.string.notification_slot_2_key), notificationSlot2);
player.context.getString(R.string.notification_action_2_key), notificationSlot2);
notificationSlot3 = player.sharedPreferences.getString(
player.context.getString(R.string.notification_slot_3_key), notificationSlot3);
player.context.getString(R.string.notification_action_3_key), notificationSlot3);
notificationSlot4 = player.sharedPreferences.getString(
player.context.getString(R.string.notification_slot_4_key), notificationSlot4);
player.context.getString(R.string.notification_action_4_key), notificationSlot4);
}
@SuppressLint("RestrictedApi")