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:
parent
7340bc05b4
commit
6f18dd26a2
4 changed files with 19 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue