From f67158a2a7795582cfbfc716e208973e90197d20 Mon Sep 17 00:00:00 2001 From: Christian Schabesberger Date: Thu, 29 Oct 2015 18:37:32 +0100 Subject: [PATCH] Fixed: - made "could not find a streamingplayer" thing inside ActionBarHandler yield stacktraces - remove watermark - fixed fab layout - changed version number to 0.5.0 --- app/app.iml | 16 +++++++++------- app/build.gradle | 10 +++++----- .../org/schabi/newpipe/ActionBarHandler.java | 2 ++ .../schabi/newpipe/VideoItemListActivity.java | 9 --------- .../layout-land/fragment_videoitem_detail.xml | 2 +- .../activity_videoitem_list.xml | 6 ------ .../layout-sw600dp/fragment_videoitem_detail.xml | 2 +- .../main/res/layout/activity_videoitem_list.xml | 6 ------ .../res/layout/fragment_videoitem_detail.xml | 2 +- 9 files changed, 19 insertions(+), 36 deletions(-) diff --git a/app/app.iml b/app/app.iml index cf9c27cba..58221a4e6 100644 --- a/app/app.iml +++ b/app/app.iml @@ -71,9 +71,10 @@ - - - + + + + @@ -91,11 +92,12 @@ + - + - - - + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index 2ce9fefff..657b85604 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "org.schabi.newpipe" minSdkVersion 15 targetSdkVersion 23 - versionCode 4 - versionName "0.4.1" + versionCode 5 + versionName "0.5.0" } buildTypes { release { @@ -21,9 +21,9 @@ android { dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') - compile 'com.android.support:appcompat-v7:23.0.1' - compile 'com.android.support:support-v4:23.0.1' + compile 'com.android.support:appcompat-v7:23.1.0' + compile 'com.android.support:support-v4:23.1.0' compile 'org.jsoup:jsoup:1.8.3' compile 'org.mozilla:rhino:1.7.7' - compile 'com.android.support:design:23.0.1' + compile 'com.android.support:design:23.1.0' } diff --git a/app/src/main/java/org/schabi/newpipe/ActionBarHandler.java b/app/src/main/java/org/schabi/newpipe/ActionBarHandler.java index 024974089..6c8d73696 100644 --- a/app/src/main/java/org/schabi/newpipe/ActionBarHandler.java +++ b/app/src/main/java/org/schabi/newpipe/ActionBarHandler.java @@ -320,6 +320,8 @@ public class ActionBarHandler { } }); builder.create().show(); + Log.d(TAG, "Either no Streaming player for audio was installed, or something importand crashed:"); + e.printStackTrace(); } } } diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java index 241cd6517..4caeec171 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java @@ -63,7 +63,6 @@ public class VideoItemListActivity extends AppCompatActivity // onQueryTextSubmit to trigger twice when focus is not cleared. // See: http://stackoverflow.com/questions/17874951/searchview-onquerytextsubmit-runs-twice-while-i-pressed-once getCurrentFocus().clearFocus(); - hideWatermark(); } catch(Exception e) { e.printStackTrace(); } @@ -77,13 +76,6 @@ public class VideoItemListActivity extends AppCompatActivity } - private void hideWatermark() { - ImageView waterMark = (ImageView) findViewById(R.id.list_view_watermark); - if(waterMark != null) { - waterMark.setVisibility(View.GONE); - } - } - /** * Whether or not the activity is in two-pane mode, i.e. running on a tablet * device. @@ -109,7 +101,6 @@ public class VideoItemListActivity extends AppCompatActivity searchQuery = savedInstanceState.getString(QUERY); currentStreamingServiceId = savedInstanceState.getInt(STREAMING_SERVICE); if(!searchQuery.isEmpty()) { - hideWatermark(); listFragment.search(searchQuery); } } diff --git a/app/src/main/res/layout-land/fragment_videoitem_detail.xml b/app/src/main/res/layout-land/fragment_videoitem_detail.xml index 8a93ce015..3b4206b06 100644 --- a/app/src/main/res/layout-land/fragment_videoitem_detail.xml +++ b/app/src/main/res/layout-land/fragment_videoitem_detail.xml @@ -190,7 +190,7 @@ diff --git a/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml b/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml index 3586f910b..bdf17b8af 100644 --- a/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml +++ b/app/src/main/res/layout-sw600dp-land/activity_videoitem_list.xml @@ -42,12 +42,6 @@ android:layout_width="0dp" android:layout_weight="4"> - - diff --git a/app/src/main/res/layout-sw600dp/fragment_videoitem_detail.xml b/app/src/main/res/layout-sw600dp/fragment_videoitem_detail.xml index 8a93ce015..3b4206b06 100644 --- a/app/src/main/res/layout-sw600dp/fragment_videoitem_detail.xml +++ b/app/src/main/res/layout-sw600dp/fragment_videoitem_detail.xml @@ -190,7 +190,7 @@ diff --git a/app/src/main/res/layout/activity_videoitem_list.xml b/app/src/main/res/layout/activity_videoitem_list.xml index ef35fc763..0a1c8e2e5 100644 --- a/app/src/main/res/layout/activity_videoitem_list.xml +++ b/app/src/main/res/layout/activity_videoitem_list.xml @@ -3,12 +3,6 @@ android:layout_height="match_parent" android:orientation="vertical"> - -