File tree Expand file tree Collapse file tree
android/src/org/coolreader/crengine Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -755,6 +755,11 @@ public void initAudiobookWordTimings(InitAudiobookWordTimingsCallback callback){
755755 wordTimingCalcHandler = new Handler (wordTimingCalcLooper );
756756 }
757757
758+ mPlayPauseButton .setVisibility (View .GONE );
759+ backButton .setVisibility (View .GONE );
760+ forwardButton .setVisibility (View .GONE );
761+ stopButton .setVisibility (View .GONE );
762+ optionsButton .setVisibility (View .GONE );
758763
759764 wordTimingCalcHandler .removeCallbacksAndMessages (null );
760765 mCoolReader .showToast ("matching audiobook word timings" );
@@ -770,6 +775,14 @@ public void run() {
770775 moveSelection (ReaderCommand .DCMD_SELECT_FIRST_SENTENCE , null );
771776 audioBookPosHandler .postDelayed (audioBookPosRunnable , 500 );
772777
778+ BackgroundThread .instance ().postGUI (() -> {
779+ mPlayPauseButton .setVisibility (View .VISIBLE );
780+ backButton .setVisibility (View .VISIBLE );
781+ forwardButton .setVisibility (View .VISIBLE );
782+ stopButton .setVisibility (View .VISIBLE );
783+ optionsButton .setVisibility (View .VISIBLE );
784+ });
785+
773786 if (callback != null ){
774787 callback .onComplete ();
775788 }
You can’t perform that action at this time.
0 commit comments