Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
vendz committed Feb 15, 2022
1 parent a14287a commit bec7057
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
android:screenOrientation="portrait"/>
<activity
android:name=".activities.YoutubeActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="false" />
<activity
android:name=".activities.MovieStreamActivity"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ public void onInitializationFailure(YouTubePlayer.Provider provider, YouTubeInit

youTubePlayerView.initialize(Constants.YOUTUBE_API_KEY, onInitializedListener);

youtube_close.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
onBackPressed();
}
});
youtube_close.setOnClickListener(view -> onBackPressed());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public void onClick(View view) {
Intent intent = new Intent(getActivity(), SearchResultsActivity.class);
intent.putExtra("query", searchView.getText().toString());
startActivity(intent);

// Favourite.insertQuery(getActivity(), searchView.getText().toString());
// System.out.println(Favourite.getQueries(getActivity()));
}
});
}
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/res/layout/activity_youtube.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,6 @@
tools:context=".activities.YoutubeActivity"
android:background="@color/black">

<!-- <com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView-->
<!-- android:id="@+id/youtube_view"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_marginBottom="100dp"-->
<!-- app:layout_constraintBottom_toBottomOf="parent"-->
<!-- app:layout_constraintEnd_toEndOf="parent"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent"-->
<!-- app:showFullScreenButton="false" />-->

<com.google.android.youtube.player.YouTubePlayerView
android:id="@+id/youtube_view"
android:layout_width="match_parent"
Expand Down

0 comments on commit bec7057

Please sign in to comment.