mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Cast context - removed deprecated methods
This commit is contained in:
parent
c1fa79ef29
commit
7aef9af9b4
2 changed files with 2 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ class MediaService : MediaLibraryService(), SessionAvailabilityListener {
|
||||||
|
|
||||||
private fun initializeCastPlayer() {
|
private fun initializeCastPlayer() {
|
||||||
if (UIUtil.isCastApiAvailable(this)) {
|
if (UIUtil.isCastApiAvailable(this)) {
|
||||||
castPlayer = CastPlayer(CastContext.getSharedInstance(this))
|
castPlayer = CastContext.getSharedInstance()?.let { CastPlayer(it) }!!
|
||||||
castPlayer.setSessionAvailabilityListener(this)
|
castPlayer.setSessionAvailabilityListener(this)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ public class BaseActivity extends AppCompatActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initializeCastContext() {
|
private void initializeCastContext() {
|
||||||
if (UIUtil.isCastApiAvailable(this)) CastContext.getSharedInstance(this);
|
if (UIUtil.isCastApiAvailable(this)) CastContext.getSharedInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setNavigationBarColor() {
|
private void setNavigationBarColor() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue