- added preference for "next video" item
- display if a url is supported or nod
This commit is contained in:
parent
d9e690f62c
commit
080159849e
9 changed files with 184 additions and 141 deletions
|
|
@ -8,6 +8,7 @@ import android.support.v7.app.AppCompatActivity;
|
|||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Toast;
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -74,6 +75,10 @@ public class VideoItemDetailActivity extends AppCompatActivity {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if(extractor == null) {
|
||||
Toast.makeText(this, R.string.urlNotSupportedText, Toast.LENGTH_LONG)
|
||||
.show();
|
||||
}
|
||||
arguments.putString(VideoItemDetailFragment.VIDEO_URL,
|
||||
extractor.getVideoUrl(extractor.getVideoId(videoUrl)));
|
||||
arguments.putBoolean(VideoItemDetailFragment.AUTO_PLAY,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue