diff options
author | sv244 <sv244@popcorntime.io> | 2015-10-14 10:51:11 +0200 |
---|---|---|
committer | sv244 <sv244@popcorntime.io> | 2015-10-14 10:51:11 +0200 |
commit | 969fc891f33de6a8daa452b3a9fbe2ef53b911bf (patch) | |
tree | a197372925895985d1b93529de148d7306a71e76 | |
parent | 4c251792158bd0629fa2af91cc6194f15dad7b5c (diff) | |
download | popcorn-android-origin/master.zip popcorn-android-origin/master.tar.gz popcorn-android-origin/master.tar.bz2 |
Add license headerorigin/master
Former-commit-id: a9abedaa75774a261caa5609f42abccc99c559e1
84 files changed, 1374 insertions, 149 deletions
diff --git a/tv/build.gradle b/tv/build.gradle index 4d6a027..9fb1258 100644 --- a/tv/build.gradle +++ b/tv/build.gradle @@ -72,6 +72,23 @@ android { project.ext.versionCodes = ["armeabi": 1, "armeabi-v7a": 2, "arm64-v8a": 3, "x86": 4] } +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + //./gradlew dependencyUpdates -Drevision=release dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) diff --git a/tv/lint.xml b/tv/lint.xml index 4b187bc..df2c481 100644 --- a/tv/lint.xml +++ b/tv/lint.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <lint> <issue id="InvalidPackage"> <ignore regexp=".*okio.*" /> diff --git a/tv/src/debug/AndroidManifest.xml b/tv/src/debug/AndroidManifest.xml index 0e01523..d4035f3 100644 --- a/tv/src/debug/AndroidManifest.xml +++ b/tv/src/debug/AndroidManifest.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <!-- vmSafeMode disables Art AOT compilation to speed up deploys --> diff --git a/tv/src/main/AndroidManifest.xml b/tv/src/main/AndroidManifest.xml index b90f3a4..3d13dc2 100644 --- a/tv/src/main/AndroidManifest.xml +++ b/tv/src/main/AndroidManifest.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="pct.droid.tv" > diff --git a/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewRowPresenter.java b/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewRowPresenter.java index 97a04fc..d20f4b4 100644 --- a/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewRowPresenter.java +++ b/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewRowPresenter.java @@ -1,25 +1,26 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package android.support.v17.leanback.widget; import android.app.Activity; import android.content.Context; -import android.graphics.Bitmap; import android.graphics.Color; -import android.graphics.drawable.Drawable; -import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.ColorDrawable; +import android.graphics.drawable.Drawable; import android.os.Handler; import android.support.annotation.ColorInt; import android.support.v17.leanback.R; @@ -33,8 +34,6 @@ import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.ImageView; -import java.util.Collection; - /** * Renders a {@link DetailsOverviewRow} to display an overview of an item. * Typically this row will be the first row in a fragment diff --git a/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewSharedElementHelper.java b/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewSharedElementHelper.java index 046c73f..08d2f60 100644 --- a/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewSharedElementHelper.java +++ b/tv/src/main/java/android/support/v17/leanback/widget/PTVDetailsOverviewSharedElementHelper.java @@ -1,34 +1,35 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package android.support.v17.leanback.widget; +import android.app.Activity; +import android.graphics.Matrix; import android.os.Handler; +import android.support.v17.leanback.transition.TransitionHelper; +import android.support.v17.leanback.transition.TransitionListener; +import android.support.v17.leanback.widget.PTVDetailsOverviewRowPresenter.ViewHolder; import android.support.v4.app.ActivityCompat; import android.support.v4.app.SharedElementCallback; import android.support.v4.view.ViewCompat; -import android.support.v17.leanback.R; -import android.support.v17.leanback.transition.TransitionListener; -import android.support.v17.leanback.transition.TransitionHelper; -import android.support.v17.leanback.widget.PTVDetailsOverviewRowPresenter.ViewHolder; -import android.app.Activity; -import android.content.Intent; -import android.graphics.Matrix; import android.text.TextUtils; import android.util.Log; import android.view.View; -import android.view.ViewGroup; import android.view.View.MeasureSpec; +import android.view.ViewGroup; import android.widget.ImageView; import android.widget.ImageView.ScaleType; diff --git a/tv/src/main/java/pct/droid/tv/PTVPopcornApplication.java b/tv/src/main/java/pct/droid/tv/PTVPopcornApplication.java index 53a23f8..7d0bcf5 100644 --- a/tv/src/main/java/pct/droid/tv/PTVPopcornApplication.java +++ b/tv/src/main/java/pct/droid/tv/PTVPopcornApplication.java @@ -1,8 +1,24 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv; import pct.droid.base.PopcornApplication; import pct.droid.base.utils.VersionUtils; -import pct.droid.tv.activities.PTVUpdateActivity; public class PTVPopcornApplication extends PopcornApplication { diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVLaunchActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVLaunchActivity.java index 57c2aa5..91f6075 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVLaunchActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVLaunchActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVMainActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVMainActivity.java index d6d77e3..c4b1575 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVMainActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVMainActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVMediaDetailActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVMediaDetailActivity.java index d584836..51d7120 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVMediaDetailActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVMediaDetailActivity.java @@ -1,27 +1,34 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.annotation.TargetApi; import android.app.Activity; -import android.app.SharedElementCallback; import android.content.Context; import android.content.Intent; -import android.graphics.Matrix; -import android.graphics.RectF; import android.os.Build; import android.os.Bundle; -import android.os.Parcelable; -import android.support.v4.app.ActivityCompat; -import android.view.View; - -import java.util.List; -import java.util.Map; import pct.droid.base.providers.media.models.Media; import pct.droid.base.providers.media.models.Movie; import pct.droid.base.utils.VersionUtils; import pct.droid.tv.R; import pct.droid.tv.activities.base.PTVBaseActivity; -import pct.droid.tv.fragments.PTVBaseDetailsFragment; import pct.droid.tv.fragments.PTVMovieDetailsFragment; import pct.droid.tv.fragments.PTVShowDetailsFragment; import pct.droid.tv.utils.BackgroundUpdater; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVMediaGridActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVMediaGridActivity.java index 68f5e79..6aa0337 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVMediaGridActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVMediaGridActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVPreferencesActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVPreferencesActivity.java index ca728b0..edfe35b 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVPreferencesActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVPreferencesActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVSearchActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVSearchActivity.java index d47f43a..c7e4e01 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVSearchActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVSearchActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVStreamLoadingActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVStreamLoadingActivity.java index d640686..486af34 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVStreamLoadingActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVStreamLoadingActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.annotation.SuppressLint; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVTrailerPlayerActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVTrailerPlayerActivity.java index d1d8558..e99d9bd 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVTrailerPlayerActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVTrailerPlayerActivity.java @@ -1,6 +1,22 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; -import android.app.Activity; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVUpdateActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVUpdateActivity.java index bb0e065..290ccb3 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVUpdateActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVUpdateActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.content.Context; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVVideoPlayerActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVVideoPlayerActivity.java index 0028284..771a298 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVVideoPlayerActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVVideoPlayerActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.annotation.SuppressLint; diff --git a/tv/src/main/java/pct/droid/tv/activities/PTVWelcomeActivity.java b/tv/src/main/java/pct/droid/tv/activities/PTVWelcomeActivity.java index 1df023a..ba0d325 100644 --- a/tv/src/main/java/pct/droid/tv/activities/PTVWelcomeActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/PTVWelcomeActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/activities/base/PTVBaseActivity.java b/tv/src/main/java/pct/droid/tv/activities/base/PTVBaseActivity.java index d2166a5..9b450f5 100644 --- a/tv/src/main/java/pct/droid/tv/activities/base/PTVBaseActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/base/PTVBaseActivity.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.activities.base; import android.app.AlertDialog; diff --git a/tv/src/main/java/pct/droid/tv/activities/base/PTVTorrentBaseActivity.java b/tv/src/main/java/pct/droid/tv/activities/base/PTVTorrentBaseActivity.java index a59e378..18be963 100644 --- a/tv/src/main/java/pct/droid/tv/activities/base/PTVTorrentBaseActivity.java +++ b/tv/src/main/java/pct/droid/tv/activities/base/PTVTorrentBaseActivity.java @@ -15,23 +15,6 @@ * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ -/* - * This file is part of Popcorn Time. - * - * Popcorn Time is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Popcorn Time is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. - */ - package pct.droid.tv.activities.base; import android.content.ComponentName; diff --git a/tv/src/main/java/pct/droid/tv/adapters/MediaObjectAdapter.java b/tv/src/main/java/pct/droid/tv/adapters/MediaObjectAdapter.java index f05fe84..15c7f56 100644 --- a/tv/src/main/java/pct/droid/tv/adapters/MediaObjectAdapter.java +++ b/tv/src/main/java/pct/droid/tv/adapters/MediaObjectAdapter.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.adapters; import android.support.v17.leanback.widget.ArrayObjectAdapter; diff --git a/tv/src/main/java/pct/droid/tv/events/ConfigureSubtitleEvent.java b/tv/src/main/java/pct/droid/tv/events/ConfigureSubtitleEvent.java index 2c1af3f..7dbb47a 100644 --- a/tv/src/main/java/pct/droid/tv/events/ConfigureSubtitleEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/ConfigureSubtitleEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class ConfigureSubtitleEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/PausePlaybackEvent.java b/tv/src/main/java/pct/droid/tv/events/PausePlaybackEvent.java index 0c6bd18..8178bf9 100644 --- a/tv/src/main/java/pct/droid/tv/events/PausePlaybackEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/PausePlaybackEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class PausePlaybackEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/PlaybackProgressChangedEvent.java b/tv/src/main/java/pct/droid/tv/events/PlaybackProgressChangedEvent.java index 88bfef7..94de7e3 100644 --- a/tv/src/main/java/pct/droid/tv/events/PlaybackProgressChangedEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/PlaybackProgressChangedEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class PlaybackProgressChangedEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/ScaleVideoEvent.java b/tv/src/main/java/pct/droid/tv/events/ScaleVideoEvent.java index 36888ab..10526bd 100644 --- a/tv/src/main/java/pct/droid/tv/events/ScaleVideoEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/ScaleVideoEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class ScaleVideoEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/SeekBackwardEvent.java b/tv/src/main/java/pct/droid/tv/events/SeekBackwardEvent.java index b591927..ae30f9b 100644 --- a/tv/src/main/java/pct/droid/tv/events/SeekBackwardEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/SeekBackwardEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class SeekBackwardEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/SeekForwardEvent.java b/tv/src/main/java/pct/droid/tv/events/SeekForwardEvent.java index 3f787b2..1799f26 100644 --- a/tv/src/main/java/pct/droid/tv/events/SeekForwardEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/SeekForwardEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class SeekForwardEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/StartPlaybackEvent.java b/tv/src/main/java/pct/droid/tv/events/StartPlaybackEvent.java index 738f5f6..145b63f 100644 --- a/tv/src/main/java/pct/droid/tv/events/StartPlaybackEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/StartPlaybackEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class StartPlaybackEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/StreamProgressChangedEvent.java b/tv/src/main/java/pct/droid/tv/events/StreamProgressChangedEvent.java index 168d2d6..cb9fd63 100644 --- a/tv/src/main/java/pct/droid/tv/events/StreamProgressChangedEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/StreamProgressChangedEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class StreamProgressChangedEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/ToggleSubtitleEvent.java b/tv/src/main/java/pct/droid/tv/events/ToggleSubtitleEvent.java index dc702f4..6eceb55 100644 --- a/tv/src/main/java/pct/droid/tv/events/ToggleSubtitleEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/ToggleSubtitleEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class ToggleSubtitleEvent { diff --git a/tv/src/main/java/pct/droid/tv/events/UpdatePlaybackStateEvent.java b/tv/src/main/java/pct/droid/tv/events/UpdatePlaybackStateEvent.java index a00661b..91ed711 100644 --- a/tv/src/main/java/pct/droid/tv/events/UpdatePlaybackStateEvent.java +++ b/tv/src/main/java/pct/droid/tv/events/UpdatePlaybackStateEvent.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.events; public class UpdatePlaybackStateEvent { diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVBaseDetailsFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVBaseDetailsFragment.java index 9ad21c4..b96bb1a 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVBaseDetailsFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVBaseDetailsFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.annotation.TargetApi; @@ -11,7 +28,6 @@ import android.support.v17.leanback.widget.Action; import android.support.v17.leanback.widget.ArrayObjectAdapter; import android.support.v17.leanback.widget.ClassPresenterSelector; import android.support.v17.leanback.widget.DetailsOverviewRow; -import android.support.v17.leanback.widget.DetailsOverviewRowPresenter; import android.support.v17.leanback.widget.ListRow; import android.support.v17.leanback.widget.ListRowPresenter; import android.support.v17.leanback.widget.OnActionClickedListener; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVMediaGridFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVMediaGridFragment.java index c7b3015..fc4fbba 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVMediaGridFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVMediaGridFragment.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.fragments; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVMovieDetailsFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVMovieDetailsFragment.java index 60ee258..e716f39 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVMovieDetailsFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVMovieDetailsFragment.java @@ -1,8 +1,23 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.app.Fragment; -import android.content.Intent; -import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter; import android.support.v17.leanback.widget.Action; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVOverviewFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVOverviewFragment.java index af953aa..4de6e0a 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVOverviewFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVOverviewFragment.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.fragments; @@ -56,8 +59,8 @@ import pct.droid.tv.BuildConfig; import pct.droid.tv.R; import pct.droid.tv.activities.PTVMediaDetailActivity; import pct.droid.tv.activities.PTVMediaGridActivity; -import pct.droid.tv.activities.PTVSearchActivity; import pct.droid.tv.activities.PTVPreferencesActivity; +import pct.droid.tv.activities.PTVSearchActivity; import pct.droid.tv.activities.PTVVideoPlayerActivity; import pct.droid.tv.presenters.MediaCardPresenter; import pct.droid.tv.presenters.MorePresenter; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVPlaybackOverlayFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVPlaybackOverlayFragment.java index 6ee62a1..13120e9 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVPlaybackOverlayFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVPlaybackOverlayFragment.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.fragments; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesFragment.java index e629cb7..56d3100 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.graphics.Color; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesListFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesListFragment.java index cce3985..30549ea 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesListFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVPreferencesListFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.os.Bundle; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVSearchFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVSearchFragment.java index 67793fd..82e12e7 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVSearchFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVSearchFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.os.Bundle; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVShowDetailsFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVShowDetailsFragment.java index 7cd779b..0513fd0 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVShowDetailsFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVShowDetailsFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.app.AlertDialog; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVStreamLoadingFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVStreamLoadingFragment.java index 1e9ce1b..d3ff78f 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVStreamLoadingFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVStreamLoadingFragment.java @@ -15,6 +15,23 @@ * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.annotation.TargetApi; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVUpdateFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVUpdateFragment.java index 2619d41..13e19b6 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVUpdateFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVUpdateFragment.java @@ -1,9 +1,25 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.content.Intent; import android.net.Uri; import android.os.Bundle; -import android.os.Environment; import android.support.annotation.NonNull; import android.support.v17.leanback.app.GuidedStepFragment; import android.support.v17.leanback.widget.GuidanceStylist; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVVideoPlayerFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVVideoPlayerFragment.java index 75126b3..0a8d1da 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVVideoPlayerFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVVideoPlayerFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/fragments/PTVWelcomeFragment.java b/tv/src/main/java/pct/droid/tv/fragments/PTVWelcomeFragment.java index 03df68a..c2636bc 100644 --- a/tv/src/main/java/pct/droid/tv/fragments/PTVWelcomeFragment.java +++ b/tv/src/main/java/pct/droid/tv/fragments/PTVWelcomeFragment.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.fragments; import android.os.Bundle; diff --git a/tv/src/main/java/pct/droid/tv/presenters/MediaCardPresenter.java b/tv/src/main/java/pct/droid/tv/presenters/MediaCardPresenter.java index 4581bde..8cfc50e 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/MediaCardPresenter.java +++ b/tv/src/main/java/pct/droid/tv/presenters/MediaCardPresenter.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.presenters; diff --git a/tv/src/main/java/pct/droid/tv/presenters/MoreCardView.java b/tv/src/main/java/pct/droid/tv/presenters/MoreCardView.java index ac6fa28..777383c 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/MoreCardView.java +++ b/tv/src/main/java/pct/droid/tv/presenters/MoreCardView.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.presenters; import android.content.Context; diff --git a/tv/src/main/java/pct/droid/tv/presenters/MorePresenter.java b/tv/src/main/java/pct/droid/tv/presenters/MorePresenter.java index 0f9192d..97aa98d 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/MorePresenter.java +++ b/tv/src/main/java/pct/droid/tv/presenters/MorePresenter.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.presenters; import android.content.Context; diff --git a/tv/src/main/java/pct/droid/tv/presenters/MoreViewHolder.java b/tv/src/main/java/pct/droid/tv/presenters/MoreViewHolder.java index fcd294e..bdb0bc8 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/MoreViewHolder.java +++ b/tv/src/main/java/pct/droid/tv/presenters/MoreViewHolder.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.presenters; import android.support.v17.leanback.widget.Presenter; diff --git a/tv/src/main/java/pct/droid/tv/presenters/MovieDetailsDescriptionPresenter.java b/tv/src/main/java/pct/droid/tv/presenters/MovieDetailsDescriptionPresenter.java index 8ff7a45..a502ac5 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/MovieDetailsDescriptionPresenter.java +++ b/tv/src/main/java/pct/droid/tv/presenters/MovieDetailsDescriptionPresenter.java @@ -1,10 +1,26 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.presenters; import android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter; import pct.droid.base.providers.media.models.Media; import pct.droid.base.providers.media.models.Movie; -import pct.droid.tv.fragments.PTVMovieDetailsFragment; public class MovieDetailsDescriptionPresenter extends AbstractDetailsDescriptionPresenter { diff --git a/tv/src/main/java/pct/droid/tv/presenters/ShowDetailsDescriptionPresenter.java b/tv/src/main/java/pct/droid/tv/presenters/ShowDetailsDescriptionPresenter.java index 36a0676..adcc5c8 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/ShowDetailsDescriptionPresenter.java +++ b/tv/src/main/java/pct/droid/tv/presenters/ShowDetailsDescriptionPresenter.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.presenters; import android.support.v17.leanback.widget.AbstractDetailsDescriptionPresenter; diff --git a/tv/src/main/java/pct/droid/tv/presenters/showdetail/EpisodeCardPresenter.java b/tv/src/main/java/pct/droid/tv/presenters/showdetail/EpisodeCardPresenter.java index 40a14f0..f5451d1 100644 --- a/tv/src/main/java/pct/droid/tv/presenters/showdetail/EpisodeCardPresenter.java +++ b/tv/src/main/java/pct/droid/tv/presenters/showdetail/EpisodeCardPresenter.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.presenters.showdetail; diff --git a/tv/src/main/java/pct/droid/tv/receivers/BootReceiver.java b/tv/src/main/java/pct/droid/tv/receivers/BootReceiver.java index f3d07f4..434d17e 100644 --- a/tv/src/main/java/pct/droid/tv/receivers/BootReceiver.java +++ b/tv/src/main/java/pct/droid/tv/receivers/BootReceiver.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.receivers; diff --git a/tv/src/main/java/pct/droid/tv/service/RecommendationService.java b/tv/src/main/java/pct/droid/tv/service/RecommendationService.java index 2730424..aedc264 100644 --- a/tv/src/main/java/pct/droid/tv/service/RecommendationService.java +++ b/tv/src/main/java/pct/droid/tv/service/RecommendationService.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.service; import android.app.IntentService; diff --git a/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationBuilder.java b/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationBuilder.java index 784970f..bb36114 100644 --- a/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationBuilder.java +++ b/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationBuilder.java @@ -1,15 +1,18 @@ /* - * Copyright (C) 2014 The Android Open Source Project + * This file is part of Popcorn Time. * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except - * in compliance with the License. You may obtain a copy of the License at + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. * - * Unless required by applicable law or agreed to in writing, software distributed under the License - * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express - * or implied. See the License for the specific language governing permissions and limitations under - * the License. + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. */ package pct.droid.tv.service.recommendation; diff --git a/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationContentProvider.java b/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationContentProvider.java index 07821f5..4d02ed7 100644 --- a/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationContentProvider.java +++ b/tv/src/main/java/pct/droid/tv/service/recommendation/RecommendationContentProvider.java @@ -1,14 +1,22 @@ -package pct.droid.tv.service.recommendation; +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ -import java.io.FileNotFoundException; -import java.io.IOException; -import java.io.InputStream; -import java.io.OutputStream; -import java.net.HttpURLConnection; -import java.net.URL; -import java.net.URLDecoder; +package pct.droid.tv.service.recommendation; -import pct.droid.base.PopcornApplication; import android.content.ContentProvider; import android.content.ContentValues; import android.database.Cursor; @@ -19,6 +27,16 @@ import android.util.Log; import com.squareup.okhttp.OkHttpClient; import com.squareup.okhttp.OkUrlFactory; +import java.io.FileNotFoundException; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.net.HttpURLConnection; +import java.net.URL; +import java.net.URLDecoder; + +import pct.droid.base.PopcornApplication; + public class RecommendationContentProvider extends ContentProvider { public static String AUTHORITY = "pct.droid.tv.RecommendationContentProvider"; diff --git a/tv/src/main/java/pct/droid/tv/utils/BackgroundUpdater.java b/tv/src/main/java/pct/droid/tv/utils/BackgroundUpdater.java index 7fc869e..25301ce 100644 --- a/tv/src/main/java/pct/droid/tv/utils/BackgroundUpdater.java +++ b/tv/src/main/java/pct/droid/tv/utils/BackgroundUpdater.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.utils; import android.app.Activity; diff --git a/tv/src/main/java/pct/droid/tv/utils/MediaListRow.java b/tv/src/main/java/pct/droid/tv/utils/MediaListRow.java index 25d2284..ca3bcd2 100644 --- a/tv/src/main/java/pct/droid/tv/utils/MediaListRow.java +++ b/tv/src/main/java/pct/droid/tv/utils/MediaListRow.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.utils; import android.support.v17.leanback.widget.HeaderItem; diff --git a/tv/src/main/java/pct/droid/tv/utils/PicassoBackgroundManagerTarget.java b/tv/src/main/java/pct/droid/tv/utils/PicassoBackgroundManagerTarget.java index 5689f10..9366e4f 100644 --- a/tv/src/main/java/pct/droid/tv/utils/PicassoBackgroundManagerTarget.java +++ b/tv/src/main/java/pct/droid/tv/utils/PicassoBackgroundManagerTarget.java @@ -1,3 +1,20 @@ +/* + * This file is part of Popcorn Time. + * + * Popcorn Time is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Popcorn Time is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + */ + package pct.droid.tv.utils; import android.graphics.Bitmap; diff --git a/tv/src/main/res/drawable/episode_row_selector.xml b/tv/src/main/res/drawable/episode_row_selector.xml index 5275248..92653af 100644 --- a/tv/src/main/res/drawable/episode_row_selector.xml +++ b/tv/src/main/res/drawable/episode_row_selector.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/episode_row_background_color_focused" android:state_focused="true"/> diff --git a/tv/src/main/res/drawable/placeholder_inset.xml b/tv/src/main/res/drawable/placeholder_inset.xml index c782023..fa47907 100644 --- a/tv/src/main/res/drawable/placeholder_inset.xml +++ b/tv/src/main/res/drawable/placeholder_inset.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:left="32dp" android:right="32dp"> <bitmap diff --git a/tv/src/main/res/drawable/player_controls_background.xml b/tv/src/main/res/drawable/player_controls_background.xml index 3684dfb..e447851 100644 --- a/tv/src/main/res/drawable/player_controls_background.xml +++ b/tv/src/main/res/drawable/player_controls_background.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@color/primary" /> <corners android:radius="@dimen/player_controls_corners" /> diff --git a/tv/src/main/res/drawable/player_info_background.xml b/tv/src/main/res/drawable/player_info_background.xml index a8abee0..dece018 100644 --- a/tv/src/main/res/drawable/player_info_background.xml +++ b/tv/src/main/res/drawable/player_info_background.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> diff --git a/tv/src/main/res/layout/activity_main.xml b/tv/src/main/res/layout/activity_main.xml index 6096f9f..6ad7c1d 100644 --- a/tv/src/main/res/layout/activity_main.xml +++ b/tv/src/main/res/layout/activity_main.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main_browse_fragment" diff --git a/tv/src/main/res/layout/activity_media_details.xml b/tv/src/main/res/layout/activity_media_details.xml index c5eae8d..f2ce44e 100644 --- a/tv/src/main/res/layout/activity_media_details.xml +++ b/tv/src/main/res/layout/activity_media_details.xml @@ -1,6 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/tv/src/main/res/layout/activity_movie_media_grid.xml b/tv/src/main/res/layout/activity_movie_media_grid.xml index cdfe2ce..a447b50 100644 --- a/tv/src/main/res/layout/activity_movie_media_grid.xml +++ b/tv/src/main/res/layout/activity_movie_media_grid.xml @@ -1,8 +1,23 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" - xmlns:tools="http://schemas.android.com/tools" android:id="@+id/fragment" android:layout_width="match_parent" android:layout_height="match_parent" /> diff --git a/tv/src/main/res/layout/activity_search.xml b/tv/src/main/res/layout/activity_search.xml index f5c717d..ec105b5 100644 --- a/tv/src/main/res/layout/activity_search.xml +++ b/tv/src/main/res/layout/activity_search.xml @@ -1,5 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <fragment xmlns:android="http://schemas.android.com/apk/res/android" android:name="pct.droid.tv.fragments.PTVSearchFragment" android:id="@+id/search_fragment" diff --git a/tv/src/main/res/layout/activity_streamloading.xml b/tv/src/main/res/layout/activity_streamloading.xml index fa322e1..2ced4b1 100644 --- a/tv/src/main/res/layout/activity_streamloading.xml +++ b/tv/src/main/res/layout/activity_streamloading.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <merge xmlns:android="http://schemas.android.com/apk/res/android"> <fragment diff --git a/tv/src/main/res/layout/activity_update.xml b/tv/src/main/res/layout/activity_update.xml index faa0f88..ad39794 100644 --- a/tv/src/main/res/layout/activity_update.xml +++ b/tv/src/main/res/layout/activity_update.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <fragment xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:name="pct.droid.tv.fragments.PTVUpdateFragment" diff --git a/tv/src/main/res/layout/activity_videoplayer.xml b/tv/src/main/res/layout/activity_videoplayer.xml index 055f081..d7acfb3 100755 --- a/tv/src/main/res/layout/activity_videoplayer.xml +++ b/tv/src/main/res/layout/activity_videoplayer.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> diff --git a/tv/src/main/res/layout/activity_welcome.xml b/tv/src/main/res/layout/activity_welcome.xml index c1d140d..9734139 100644 --- a/tv/src/main/res/layout/activity_welcome.xml +++ b/tv/src/main/res/layout/activity_welcome.xml @@ -1,6 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <fragment xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/main_browse_fragment" android:name="pct.droid.tv.fragments.PTVWelcomeFragment" @@ -8,5 +24,4 @@ android:layout_height="match_parent" tools:context=".MainActivity" tools:deviceIds="tv" - tools:ignore="MergeRootFrame" -/>
\ No newline at end of file + tools:ignore="MergeRootFrame" />
\ No newline at end of file diff --git a/tv/src/main/res/layout/episode_row.xml b/tv/src/main/res/layout/episode_row.xml index 5af8a36..b5975a7 100644 --- a/tv/src/main/res/layout/episode_row.xml +++ b/tv/src/main/res/layout/episode_row.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="@dimen/leanback_track_row_width" diff --git a/tv/src/main/res/layout/fragment_streamloading.xml b/tv/src/main/res/layout/fragment_streamloading.xml index 0793db1..ae9340b 100755 --- a/tv/src/main/res/layout/fragment_streamloading.xml +++ b/tv/src/main/res/layout/fragment_streamloading.xml @@ -1,5 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" diff --git a/tv/src/main/res/layout/fragment_videoplayer.xml b/tv/src/main/res/layout/fragment_videoplayer.xml index 428e4e6..25e307f 100755 --- a/tv/src/main/res/layout/fragment_videoplayer.xml +++ b/tv/src/main/res/layout/fragment_videoplayer.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" diff --git a/tv/src/main/res/layout/guidance_type1.xml b/tv/src/main/res/layout/guidance_type1.xml index e434c71..a2e3ffa 100644 --- a/tv/src/main/res/layout/guidance_type1.xml +++ b/tv/src/main/res/layout/guidance_type1.xml @@ -1,18 +1,19 @@ <?xml version="1.0" encoding="utf-8"?><!-- - Copyright (C) 2015 The Android Open Source Project - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---> + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" diff --git a/tv/src/main/res/layout/more_card_view.xml b/tv/src/main/res/layout/more_card_view.xml index c29a9b3..2b6537c 100644 --- a/tv/src/main/res/layout/more_card_view.xml +++ b/tv/src/main/res/layout/more_card_view.xml @@ -1,5 +1,22 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <merge xmlns:android="http://schemas.android.com/apk/res/android" xmlns:lb="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"> diff --git a/tv/src/main/res/layout/season_header_row.xml b/tv/src/main/res/layout/season_header_row.xml index 03733be..6fe214b 100644 --- a/tv/src/main/res/layout/season_header_row.xml +++ b/tv/src/main/res/layout/season_header_row.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="@dimen/leanback_track_row_width" diff --git a/tv/src/main/res/raw/changelog.xml b/tv/src/main/res/raw/changelog.xml index b6bdc5e..9a9238c 100644 --- a/tv/src/main/res/raw/changelog.xml +++ b/tv/src/main/res/raw/changelog.xml @@ -16,6 +16,23 @@ ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. --> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <changelog bulletedList="true"> <changelogversion versionName="0.1.0"> diff --git a/tv/src/main/res/values/colors.xml b/tv/src/main/res/values/colors.xml index a8e20b8..6f031bc 100644 --- a/tv/src/main/res/values/colors.xml +++ b/tv/src/main/res/values/colors.xml @@ -1,3 +1,20 @@ +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> <!-- By default --> <color name="black">#59000000</color> diff --git a/tv/src/main/res/values/dimens.xml b/tv/src/main/res/values/dimens.xml index afe347f..af78e8e 100644 --- a/tv/src/main/res/values/dimens.xml +++ b/tv/src/main/res/values/dimens.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> <!-- 1.5 ratio, height to width--> diff --git a/tv/src/main/res/values/drawable.xml b/tv/src/main/res/values/drawable.xml index 96cf92f..cd18cac 100644 --- a/tv/src/main/res/values/drawable.xml +++ b/tv/src/main/res/values/drawable.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> <drawable name="yts_filter_trending">@drawable/filter_trending</drawable> <drawable name="yts_filter_popular_now">@drawable/filter_popular_now</drawable> diff --git a/tv/src/main/res/values/ids.xml b/tv/src/main/res/values/ids.xml index c09f9f4..13a858f 100644 --- a/tv/src/main/res/values/ids.xml +++ b/tv/src/main/res/values/ids.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> diff --git a/tv/src/main/res/values/styles.xml b/tv/src/main/res/values/styles.xml index f6b8418..9175c92 100644 --- a/tv/src/main/res/values/styles.xml +++ b/tv/src/main/res/values/styles.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> <style name="Widget.Leanback.MoreCardViewStyle" parent="Widget.Leanback.BaseCardViewStyle"> <item name="cardType">infoUnder</item> diff --git a/tv/src/main/res/values/themes.xml b/tv/src/main/res/values/themes.xml index d0c655e..5d68f95 100644 --- a/tv/src/main/res/values/themes.xml +++ b/tv/src/main/res/values/themes.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> <style name="Theme.HiddenActivity" parent="android:Theme"> diff --git a/tv/src/main/res/values/values.xml b/tv/src/main/res/values/values.xml index bd3a881..d7c3c28 100644 --- a/tv/src/main/res/values/values.xml +++ b/tv/src/main/res/values/values.xml @@ -1,4 +1,21 @@ <?xml version="1.0" encoding="utf-8"?> +<!-- + ~ This file is part of Popcorn Time. + ~ + ~ Popcorn Time is free software: you can redistribute it and/or modify + ~ it under the terms of the GNU General Public License as published by + ~ the Free Software Foundation, either version 3 of the License, or + ~ (at your option) any later version. + ~ + ~ Popcorn Time is distributed in the hope that it will be useful, + ~ but WITHOUT ANY WARRANTY; without even the implied warranty of + ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ~ GNU General Public License for more details. + ~ + ~ You should have received a copy of the GNU General Public License + ~ along with Popcorn Time. If not, see <http://www.gnu.org/licenses/>. + --> + <resources> <string name="loading_data">Loading data…</string> |