From 7689acc0c50fd56087a622b5e05ab67eef5466d6 Mon Sep 17 00:00:00 2001 From: William Seemann Date: Thu, 25 Aug 2016 22:51:27 -0500 Subject: [PATCH] Update code to work with API 23 --- app/app.iml | 73 ++- app/build.gradle | 18 +- app/src/main/AndroidManifest.xml | 5 +- .../servestream/activity/MainActivity.java | 175 +++--- .../activity/MediaPlayerActivity.java | 4 +- .../fragment/AlarmClockFragment.java | 51 +- .../servestream/fragment/BrowseFragment.java | 29 +- .../fragment/MiniControllerFragment.java | 2 + .../fragment/SettingsFragment.java | 4 +- .../servestream/fragment/UrlListFragment.java | 41 +- .../servestream/media/FFmpegMediaPlayer.java | 14 +- .../media/MetadataRetrieverTask.java | 4 + .../media/ShoutCastRetrieverTask.java | 4 + .../preference/UserPreferences.java | 3 +- .../service/MediaPlaybackService.java | 369 +++++++------ .../servestream/utils/Constants.java | 2 +- app/src/main/jni/Android.mk | 19 + app/src/main/jni/metadata/Android.mk | 7 +- .../metadata/ffmpeg_mediametadataretriever.c | 517 ++++++++++-------- .../metadata/ffmpeg_mediametadataretriever.h | 20 +- .../jni/metadata/mediametadataretriever.cpp | 26 +- .../jni/metadata/mediametadataretriever.h | 12 +- app/src/main/jni/player/ffmpeg_mediaplayer.c | 4 +- ...ge_servestream_media_FFmpegMediaPlayer.cpp | 4 +- .../res/layout-sw600dp/mini_controller.xml | 3 +- .../res/layout-sw720dp/mini_controller.xml | 3 +- app/src/main/res/layout/activity_main.xml | 75 +-- app/src/main/res/layout/fragment_browse.xml | 40 +- .../res/layout/fragment_mini_controller.xml | 1 - app/src/main/res/layout/fragment_uri_list.xml | 18 +- .../main/res/layout/list_item_now_playing.xml | 4 +- app/src/main/res/layout/mini_controller.xml | 3 +- app/src/main/res/menu/browse.xml | 5 - app/src/main/res/values-sw600dp/dimens.xml | 2 +- app/src/main/res/values/dimens.xml | 7 +- app/src/main/res/values/strings.xml | 6 +- app/src/main/res/values/styles.xml | 24 +- app/src/main/res/xml/preferences.xml | 4 +- build.gradle | 2 +- drag-sort-listview/build.gradle | 2 +- drag-sort-listview/dslv/dslv.iml | 28 +- gradle/wrapper/gradle-wrapper.properties | 4 +- local.properties | 2 +- 43 files changed, 920 insertions(+), 720 deletions(-) mode change 100644 => 100755 app/src/main/jni/metadata/ffmpeg_mediametadataretriever.c diff --git a/app/app.iml b/app/app.iml index 816d5e77..c968dea7 100644 --- a/app/app.iml +++ b/app/app.iml @@ -12,10 +12,7 @@