@@ -94,7 +94,6 @@ public void run() {
94
94
private Timer recordTimer = null ;
95
95
private int seconds = 0 ;
96
96
private boolean isVRMode = false ;
97
- private boolean isStreaming = false ;
98
97
private ConstraintLayout constraintLayout ;
99
98
private ConstraintSet constraintSet ;
100
99
@@ -273,8 +272,6 @@ public void onStopTrackingTouch(SeekBar seekBar) {
273
272
chart .setData (noData );
274
273
275
274
binding .imgBtnRecord .setOnClickListener (item -> {
276
- if (!isStreaming ) return ;
277
-
278
275
if (dvrFd == null ) {
279
276
Uri dvrUri = openDvrFile ();
280
277
if (dvrUri != null ) {
@@ -352,7 +349,6 @@ public void onStopTrackingTouch(SeekBar seekBar) {
352
349
SubMenu recording = popup .getMenu ().addSubMenu ("Recording" );
353
350
MenuItem dvrBtn = recording .add (dvrFd == null ? "Start" : "Stop" );
354
351
dvrBtn .setOnMenuItemClickListener (item -> {
355
- if (!isStreaming ) return false ;
356
352
if (dvrFd == null ) {
357
353
Uri dvrUri = openDvrFile ();
358
354
if (dvrUri != null ) {
@@ -744,13 +740,9 @@ public void onWfbNgStatsChanged(WfbNGStats data) {
744
740
paddedDigits (data .count_p_dec_ok , 6 ),
745
741
paddedDigits (data .count_p_fec_recovered , 6 ),
746
742
paddedDigits (data .count_p_lost , 6 )));
747
- isStreaming = true ;
748
743
}
749
744
} else {
750
745
binding .tvLinkStatus .setText ("No wfb-ng data." );
751
- isStreaming = false ;
752
- binding .imgBtnRecord .setImageResource (R .drawable .record );
753
- stopDvr ();
754
746
}
755
747
});
756
748
}
0 commit comments