@@ -696,7 +696,7 @@ public boolean onOptionsItemSelected(final MenuItem item) {
696696 return true ;
697697 case R .id .menu_item_share_stream :
698698 if (currentInfo != null ) {
699- Stream stream ;
699+ final Stream stream ;
700700 if (currentInfo .getVideoStreams ().isEmpty ()
701701 && currentInfo .getVideoOnlyStreams ().isEmpty ()) {
702702 stream = getDefaultAudioStream ();
@@ -939,9 +939,9 @@ private boolean shouldShowComments() {
939939 //////////////////////////////////////////////////////////////////////////*/
940940
941941 private void openBackgroundPlayer (final boolean append ) {
942- AudioStream audioStream = getDefaultAudioStream ();
942+ final AudioStream audioStream = getDefaultAudioStream ();
943943
944- boolean useExternalAudioPlayer = PreferenceManager .getDefaultSharedPreferences (activity )
944+ final boolean useExternalAudioPlayer = PreferenceManager .getDefaultSharedPreferences (activity )
945945 .getBoolean (activity .getString (R .string .use_external_audio_player_key ), false );
946946
947947 if (!useExternalAudioPlayer && android .os .Build .VERSION .SDK_INT >= 16 ) {
@@ -1033,9 +1033,8 @@ private VideoStream getSelectedVideoStream() {
10331033 *
10341034 * @return AudioStream instance according to user settings
10351035 */
1036- @ Nullable
10371036 private AudioStream getDefaultAudioStream () {
1038- int streamIndex = ListHelper .getDefaultAudioFormat (activity , currentInfo .getAudioStreams ());
1037+ final int streamIndex = ListHelper .getDefaultAudioFormat (activity , currentInfo .getAudioStreams ());
10391038 return currentInfo .getAudioStreams ().get (streamIndex );
10401039 }
10411040
0 commit comments