From db0508b9ab8ba46f1ee7d5bec576ef9ff45e0b40 Mon Sep 17 00:00:00 2001 From: Adam Howard Date: Mon, 2 Nov 2015 15:03:11 +0000 Subject: [PATCH] refactored StreamingService interface so it acts as a Factory (returning new instances of called classes, eg Extractor), rather than passing Class objects (which loses type safety) which are then instantiated. Also noticed there is a conflict between existing gradle setup and mine: misc.xml and app.iml have had their jvm version values switched from 1.8 to 1.7 --- .idea/gradle.xml | 2 +- .idea/misc.xml | 2 +- app/app.iml | 8 ++++---- .../java/org/schabi/newpipe/Downloader.java | 11 ++++++++++- .../org/schabi/newpipe/StreamingService.java | 12 ++++++------ .../main/java/org/schabi/newpipe/VideoInfo.java | 17 ++++++++++------- .../newpipe/VideoInfoItemViewCreator.java | 2 +- .../schabi/newpipe/VideoItemDetailActivity.java | 7 ++++--- .../schabi/newpipe/VideoItemDetailFragment.java | 11 +++++------ .../schabi/newpipe/VideoItemListActivity.java | 6 ++---- .../schabi/newpipe/VideoItemListFragment.java | 15 ++++----------- .../newpipe/youtube/YoutubeExtractor.java | 2 +- .../schabi/newpipe/youtube/YoutubeService.java | 11 +++++++---- 13 files changed, 56 insertions(+), 50 deletions(-) diff --git a/.idea/gradle.xml b/.idea/gradle.xml index bd4202cb3..0833b17cd 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -6,7 +6,7 @@