Merge branch 'dev' into pr3178
This commit is contained in:
commit
4dd47f8adf
130 changed files with 7247 additions and 7180 deletions
|
|
@ -60,12 +60,8 @@ public class AppearanceSettingsFragment extends BasePreferenceFragment {
|
|||
|
||||
private Preference.OnPreferenceChangeListener oldNotificationsOnPreferenceChangeListener
|
||||
= (preference, newValue) -> {
|
||||
// NotificationUtil.getInstance().toast(getContext(),
|
||||
// "Killed background / popup player notification(s) !");
|
||||
NotificationUtil.getInstance()
|
||||
.cancelNotification(NotificationUtil.NOTIFICATION_ID_BACKGROUND);
|
||||
NotificationUtil.getInstance().cancelNotification(NotificationUtil.NOTIFICATION_ID_POPUP);
|
||||
|
||||
// kill player notification
|
||||
NotificationUtil.getInstance().cancelNotification();
|
||||
return true;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import androidx.preference.Preference;
|
|||
import androidx.preference.PreferenceFragmentCompat;
|
||||
|
||||
import org.schabi.newpipe.R;
|
||||
import org.schabi.newpipe.util.AndroidTvUtils;
|
||||
import org.schabi.newpipe.util.DeviceUtils;
|
||||
import org.schabi.newpipe.util.ThemeHelper;
|
||||
import org.schabi.newpipe.views.FocusOverlayView;
|
||||
|
||||
|
|
@ -62,7 +62,7 @@ public class SettingsActivity extends AppCompatActivity
|
|||
.commit();
|
||||
}
|
||||
|
||||
if (AndroidTvUtils.isTv(this)) {
|
||||
if (DeviceUtils.isTv(this)) {
|
||||
FocusOverlayView.setupFocusObserver(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue