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
|
|
@ -560,7 +560,10 @@ public class VideoDetailFragment extends BaseStateFragment<StreamInfo> implement
|
|||
@Override
|
||||
public void onActionSelected(int selectedStreamId) {
|
||||
try {
|
||||
NavigationHelper.startKore(activity, Uri.parse(info.url.replace("https", "http")));
|
||||
NavigationHelper.playWithKore(activity, Uri.parse(info.url.replace("https", "http")));
|
||||
if(activity instanceof HistoryListener) {
|
||||
((HistoryListener) activity).onVideoPlayed(info, null);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
if(DEBUG) Log.i(TAG, "Failed to start kore", e);
|
||||
showInstallKoreDialog(activity);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue