1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-04 02:09:41 +02:00

Call history listener for Kodi (closes #798)

If Kore (the Kodi App) was sucessfully started the history listener is
invoked.
This commit is contained in:
Coffeemakr 2017-10-30 21:31:59 +01:00
parent 7340bc05b4
commit 6f18dd26a2
No known key found for this signature in database
GPG key ID: 3F35676D8FF6E743
4 changed files with 19 additions and 6 deletions

View file

@ -27,6 +27,7 @@ import android.os.Handler;
import android.os.Looper;
import android.preference.PreferenceManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
@ -309,7 +310,7 @@ public class MainActivity extends AppCompatActivity implements HistoryListener {
}
@Override
public void onVideoPlayed(StreamInfo streamInfo, VideoStream videoStream) {
public void onVideoPlayed(StreamInfo streamInfo, @Nullable VideoStream videoStream) {
addWatchHistoryEntry(streamInfo);
}