clean
This commit is contained in:
parent
73c9e639b6
commit
85ffb4064b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue