@@ -600,22 +600,27 @@ private void updateMenuItemVisibility() {
600600
601601 @ Override
602602 public boolean onOptionsItemSelected (MenuItem item ) {
603+ int id = item .getItemId ();
604+ if (id == R .id .action_settings ) {
605+ NavigationHelper .openSettings (requireContext ());
606+ return true ;
607+ }
608+
603609 if (isLoading .get ()) {
604- // if is still loading block menu
610+ // if still loading, block menu buttons related to video info
605611 return true ;
606612 }
607613
608- int id = item .getItemId ();
609614 switch (id ) {
610615 case R .id .menu_item_share : {
611616 if (currentInfo != null ) {
612- ShareUtils .shareUrl (this . getContext (), currentInfo .getName (), currentInfo .getOriginalUrl ());
617+ ShareUtils .shareUrl (requireContext (), currentInfo .getName (), currentInfo .getOriginalUrl ());
613618 }
614619 return true ;
615620 }
616621 case R .id .menu_item_openInBrowser : {
617622 if (currentInfo != null ) {
618- ShareUtils .openUrlInBrowser (this . getContext (), currentInfo .getOriginalUrl ());
623+ ShareUtils .openUrlInBrowser (requireContext (), currentInfo .getOriginalUrl ());
619624 }
620625 return true ;
621626 }
@@ -1074,7 +1079,7 @@ public void handleResult(@NonNull StreamInfo info) {
10741079 if (info .getStreamType ().equals (StreamType .AUDIO_LIVE_STREAM )) {
10751080 videoCountView .setText (Localization .listeningCount (activity , info .getViewCount ()));
10761081 } else if (info .getStreamType ().equals (StreamType .LIVE_STREAM )) {
1077- videoCountView .setText (Localization .watchingCount (activity , info .getViewCount ()));
1082+ videoCountView .setText (Localization .localizeWatchingCount (activity , info .getViewCount ()));
10781083 } else {
10791084 videoCountView .setText (Localization .localizeViewCount (activity , info .getViewCount ()));
10801085 }
0 commit comments