1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-20 09:06:27 +01:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-01-21 15:44:14 +01:00
commit 647cfcd401
2 changed files with 7 additions and 2 deletions

View File

@ -141,6 +141,7 @@ public class VideoItemDetailActivity extends AppCompatActivity {
@Override
public void onSaveInstanceState(Bundle outState) {
super.onSaveInstanceState(outState);
outState.putString(VideoItemDetailFragment.VIDEO_URL, videoUrl);
outState.putInt(VideoItemDetailFragment.STREAMING_SERVICE, currentStreamingService);
outState.putBoolean(VideoItemDetailFragment.AUTO_PLAY, false);
@ -148,6 +149,7 @@ public class VideoItemDetailActivity extends AppCompatActivity {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
int id = item.getItemId();
if (id == android.R.id.home) {
// This ID represents the Home or Up button. In the case of this

View File

@ -647,8 +647,8 @@ public class VideoItemDetailFragment extends Fragment {
}
@Override
public void onActivityCreated(Bundle savedInstanceBundle) {
super.onActivityCreated(savedInstanceBundle);
public void onStart() {
super.onStart();
Activity a = getActivity();
infoItemBuilder = new InfoItemBuilder(a, a.findViewById(android.R.id.content));
@ -779,11 +779,13 @@ public class VideoItemDetailFragment extends Fragment {
@Override
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
super.onCreateOptionsMenu(menu, inflater);
actionBarHandler.setupMenu(menu, inflater);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
super.onOptionsItemSelected(item);
return actionBarHandler.onItemSelected(item);
}
@ -806,6 +808,7 @@ public class VideoItemDetailFragment extends Fragment {
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
switch (requestCode) {
case RECAPTCHA_REQUEST:
if (resultCode == RESULT_OK) {