setup for version 0.7.0

This commit is contained in:
Christian Schabesberger 2015-12-20 21:28:07 +01:00
parent 72289ced39
commit c89dc4ba5b
5 changed files with 25 additions and 26 deletions

View File

@ -34,8 +34,8 @@ NewPipe does not use any Google framework libraries, or the YouTube API. It only
* Watch YouTube videos * Watch YouTube videos
* Listen to YouTube videos (audio only streaming) * Listen to YouTube videos (audio only streaming)
* Select the streaming player to watch the video with * Select the streaming player to watch the video with
* Download videos (working, but it could be better) * Download videos (experimental)
* Download audio only (working, but it could be better) * Download audio only (experimental)
* Open a video in Kodi * Open a video in Kodi
* Show Next/Related videos * Show Next/Related videos
* Search YouTube in a specific language * Search YouTube in a specific language

View File

@ -8,8 +8,8 @@ android {
applicationId "org.schabi.newpipe" applicationId "org.schabi.newpipe"
minSdkVersion 15 minSdkVersion 15
targetSdkVersion 23 targetSdkVersion 23
versionCode 8 versionCode 9
versionName "0.6.2" versionName "0.7.0"
} }
buildTypes { buildTypes {
release { release {

View File

@ -301,7 +301,8 @@ class ActionBarHandler {
boolean externalAudioPlayer = PreferenceManager.getDefaultSharedPreferences(activity) boolean externalAudioPlayer = PreferenceManager.getDefaultSharedPreferences(activity)
.getBoolean(activity.getString(R.string.useExternalAudioPlayer), false); .getBoolean(activity.getString(R.string.useExternalAudioPlayer), false);
Intent intent; Intent intent;
if (!externalAudioPlayer)//internal (background) music player: explicit intent
if (!externalAudioPlayer && android.os.Build.VERSION.SDK_INT >= 18)//internal music player: explicit intent
{ {
intent = new Intent(activity, BackgroundPlayer.class); intent = new Intent(activity, BackgroundPlayer.class);

View File

@ -221,14 +221,18 @@ public class BackgroundPlayer extends Service /*implements MediaPlayer.OnPrepare
}; };
private void afterPlayCleanup() { private void afterPlayCleanup() {
//noteBuilder.setProgress(0, 0, false);//remove progress bar //noteBuilder.setProgress(0, 0, false);
noteMgr.cancel(noteID);//remove notification //remove progress bar
//remove notification
noteMgr.cancel(noteID);
unregisterReceiver(broadcastReceiver); unregisterReceiver(broadcastReceiver);
mediaPlayer.release();//release mediaPlayer's system resources //release mediaPlayer's system resources
mediaPlayer.release();
//release wifilock
wifiLock.release();//release wifilock wifiLock.release();
stopForeground(true);//remove foreground status of service; make us killable //remove foreground status of service; make us killable
stopForeground(true);
stopSelf(); stopSelf();
} }
@ -245,11 +249,4 @@ public class BackgroundPlayer extends Service /*implements MediaPlayer.OnPrepare
} }
} }
} }
/*
private class ListenerThread extends Thread implements AudioManager.OnAudioFocusChangeListener {
@Override
public void onAudioFocusChange(int focusChange) {
}
}*/
} }

View File

@ -116,14 +116,13 @@ public class VideoItemListFragment extends ListFragment {
}); });
} }
getActivity().runOnUiThread(new Runnable() { getActivity().runOnUiThread(new Runnable() {
@Override @Override
public void run() {
public void run() { if (android.os.Build.VERSION.SDK_INT >= 19) {
getListView().removeFooterView(footer); getListView().removeFooterView(footer);
} }
} }
});
);
} }
} }
@ -198,6 +197,8 @@ public class VideoItemListFragment extends ListFragment {
videoListAdapter.clearVideoList(); videoListAdapter.clearVideoList();
setListShown(false); setListShown(false);
startSearch(query, lastPage); startSearch(query, lastPage);
//todo: Somehow this command is not working on older devices,
// although it was introduced with API level 8. Test this and find a solution.
getListView().smoothScrollToPosition(0); getListView().smoothScrollToPosition(0);
} }