1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-25 01:20:34 +00:00

Added version check in the pop-up player

This commit is contained in:
Kartikey Kushwaha 2018-08-12 16:41:21 +05:30
parent 06f20c66f8
commit 930c971035

View File

@ -58,6 +58,7 @@ import com.google.android.exoplayer2.ui.AspectRatioFrameLayout;
import com.google.android.exoplayer2.ui.SubtitleView;
import org.schabi.newpipe.BuildConfig;
import org.schabi.newpipe.FetchAppVersionTask;
import org.schabi.newpipe.R;
import org.schabi.newpipe.extractor.stream.StreamInfo;
import org.schabi.newpipe.extractor.stream.VideoStream;
@ -663,6 +664,11 @@ public final class PopupVideoPlayer extends Service {
lockManager.acquireWifiAndCpu();
hideControls(DEFAULT_CONTROLS_DURATION, DEFAULT_CONTROLS_HIDE_TIME);
// Check for new version
if (BuildConfig.FLAVOR.equals("github")) {
new FetchAppVersionTask().execute();
}
}
@Override