|
|
@ -193,7 +193,11 @@ public abstract class PeertubeBaseMainActivity extends BaseActivity implements C
|
|
|
|
super.onDestroy();
|
|
|
|
super.onDestroy();
|
|
|
|
ChromeCasts.unregisterListener(this);
|
|
|
|
ChromeCasts.unregisterListener(this);
|
|
|
|
if (manage_chromecast != null) {
|
|
|
|
if (manage_chromecast != null) {
|
|
|
|
|
|
|
|
try {
|
|
|
|
unregisterReceiver(manage_chromecast);
|
|
|
|
unregisterReceiver(manage_chromecast);
|
|
|
|
|
|
|
|
} catch (IllegalArgumentException e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
new Thread(() -> {
|
|
|
|
new Thread(() -> {
|
|
|
|
if (chromeCasts != null && chromeCasts.size() > 0) {
|
|
|
|
if (chromeCasts != null && chromeCasts.size() > 0) {
|
|
|
|
for (ChromeCast cast : chromeCasts) {
|
|
|
|
for (ChromeCast cast : chromeCasts) {
|
|
|
|