diff --git a/app/src/debug/res/xml/main_settings.xml b/app/src/debug/res/xml/main_settings.xml
index 4e812bb1c..1b1c17e85 100644
--- a/app/src/debug/res/xml/main_settings.xml
+++ b/app/src/debug/res/xml/main_settings.xml
@@ -34,12 +34,6 @@
android:title="@string/content"
app:iconSpaceReserved="false" />
-
-
- Completable.fromAction {
- entity.notificationMode = mode
- subscriptionTable().update(entity)
- }.andThen(rememberLastStream(entity))
- }
+ .flatMapCompletable { entity: SubscriptionEntity ->
+ Completable.fromAction {
+ entity.notificationMode = mode
+ subscriptionTable().update(entity)
+ }.andThen(rememberLastStream(entity))
+ }
}
fun updateFromInfo(subscriptionId: Long, info: ListInfo) {
@@ -110,11 +110,11 @@ class SubscriptionManager(context: Context) {
private fun rememberLastStream(subscription: SubscriptionEntity): Completable {
return ExtractorHelper.getChannelInfo(subscription.serviceId, subscription.url, false)
- .map { channel -> channel.relatedItems.map { stream -> StreamEntity(stream) } }
- .flatMapCompletable { entities ->
- Completable.fromAction {
- database.streamDAO().upsertAll(entities)
- }
- }.onErrorComplete()
+ .map { channel -> channel.relatedItems.map { stream -> StreamEntity(stream) } }
+ .flatMapCompletable { entities ->
+ Completable.fromAction {
+ database.streamDAO().upsertAll(entities)
+ }
+ }.onErrorComplete()
}
}
diff --git a/app/src/main/java/org/schabi/newpipe/settings/AppearanceSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/AppearanceSettingsFragment.java
index 1e1b03b4f..e363469c8 100644
--- a/app/src/main/java/org/schabi/newpipe/settings/AppearanceSettingsFragment.java
+++ b/app/src/main/java/org/schabi/newpipe/settings/AppearanceSettingsFragment.java
@@ -60,7 +60,7 @@ public class AppearanceSettingsFragment extends BasePreferenceFragment {
@Override
public boolean onPreferenceTreeClick(final Preference preference) {
- if (preference.getKey().equals(captionSettingsKey) && CAPTIONING_SETTINGS_ACCESSIBLE) {
+ if (captionSettingsKey.equals(preference.getKey()) && CAPTIONING_SETTINGS_ACCESSIBLE) {
try {
startActivity(new Intent(Settings.ACTION_CAPTIONING_SETTINGS));
} catch (final ActivityNotFoundException e) {
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index f9280663b..30821be51 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -569,6 +569,7 @@
Подтверждать очистку очереди
Переход от одного плеера к другому может заменить вашу очередь
Уведомление
+ Настроить уведомление о воспроизводимом сейчас потоке
Ничего
Буферизация
Перемешать
diff --git a/app/src/main/res/values-uk/strings.xml b/app/src/main/res/values-uk/strings.xml
index 0795d378c..7dc699202 100644
--- a/app/src/main/res/values-uk/strings.xml
+++ b/app/src/main/res/values-uk/strings.xml
@@ -582,6 +582,7 @@
Повʼязані елементи
Коментарі
Сповіщення
+ Налаштувати повідомлення про відтворюваний наразі потік
Не розпізнано URL. Відкрити через іншу програму\?
Самододавання в чергу
Показувати метадані
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f84cc83b1..40dcd17c9 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -147,6 +147,7 @@
Debug
Updates
Notification
+ Configure current playing stream notification
Playing in background
Playing in popup mode
Content
diff --git a/app/src/main/res/xml/appearance_settings.xml b/app/src/main/res/xml/appearance_settings.xml
index f0c6f2aa1..6bc9f3381 100644
--- a/app/src/main/res/xml/appearance_settings.xml
+++ b/app/src/main/res/xml/appearance_settings.xml
@@ -57,4 +57,11 @@
android:title="@string/tablet_mode_title"
app:singleLineTitle="false"
app:iconSpaceReserved="false" />
+
+
+