mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-04-25 22:39:58 -05:00
npe bugfixes
This commit is contained in:
+1
-1
@@ -144,7 +144,7 @@ public class AutoFrameRateManager extends PlayerEventListenerHelper implements A
|
||||
}
|
||||
|
||||
private void applyAfr() {
|
||||
if (mPlayerData.isAfrEnabled()) {
|
||||
if (getController() != null && mPlayerData.isAfrEnabled()) {
|
||||
FormatItem videoFormat = getController().getVideoFormat();
|
||||
applyAfr(videoFormat, false);
|
||||
// Send data to AFR daemon via tvQuickActions app
|
||||
|
||||
+5
@@ -162,6 +162,11 @@ public class AutoFrameRateHelper {
|
||||
}
|
||||
|
||||
private void restoreOriginalState(Activity activity, boolean force) {
|
||||
if (activity == null) {
|
||||
Log.e(TAG, "activity == null");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isSupported()) {
|
||||
Log.d(TAG, "restoreOriginalState: autoframerate not enabled... exiting...");
|
||||
return;
|
||||
|
||||
+3
-1
@@ -1056,7 +1056,9 @@ public class PlaybackTransportRowPresenter extends PlaybackRowPresenter {
|
||||
}
|
||||
mPlaybackControlsPresenter.onUnbindViewHolder(vh.mControlsVh);
|
||||
mSecondaryControlsPresenter.onUnbindViewHolder(vh.mSecondaryControlsVh);
|
||||
row.setOnPlaybackProgressChangedListener(null);
|
||||
if (row != null) {
|
||||
row.setOnPlaybackProgressChangedListener(null);
|
||||
}
|
||||
|
||||
super.onUnbindRowViewHolder(holder);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user