This commit is contained in:
Thomas 2020-12-09 18:26:52 +01:00
parent 73c9e639b6
commit 85ffb4064b
1 changed files with 2 additions and 4 deletions

View File

@ -749,9 +749,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
chromeCast = chromeCasts.get(position); chromeCast = chromeCasts.get(position);
new Thread(() -> { new Thread(() -> {
if (chromeCast != null) { if (chromeCast != null) {
Intent intentBC = new Intent(Helper.RECEIVE_CAST_SETTINGS);
Bundle b = new Bundle();
if (chromecastActivated) { if (chromecastActivated) {
Intent intentBC = new Intent(Helper.RECEIVE_CAST_SETTINGS);
Bundle b = new Bundle();
b.putInt("displayed", 0); b.putInt("displayed", 0);
intentBC.putExtras(b); intentBC.putExtras(b);
LocalBroadcastManager.getInstance(PeertubeActivity.this).sendBroadcast(intentBC); LocalBroadcastManager.getInstance(PeertubeActivity.this).sendBroadcast(intentBC);
@ -763,8 +763,6 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
mainHandler.post(myRunnable); mainHandler.post(myRunnable);
} else { } else {
Intent intentBC = new Intent(Helper.RECEIVE_CAST_SETTINGS);
Bundle b = new Bundle();
b.putInt("displayed", 1); b.putInt("displayed", 1);
b.putParcelable("castedTube", peertube); b.putParcelable("castedTube", peertube);
intentBC.putExtras(b); intentBC.putExtras(b);