Refactored org.xbmc.kore.ui package into separate packages

This commit is contained in:
Martijn Brekhof 2016-12-20 21:47:24 +01:00 committed by Synced Synapse
parent c9ca6a08de
commit b8fbf4e190
62 changed files with 147 additions and 125 deletions

View File

@ -31,7 +31,7 @@ import org.xbmc.kore.R;
import org.xbmc.kore.testhelpers.EspressoTestUtils;
import org.xbmc.kore.testhelpers.LoaderIdlingResource;
import org.xbmc.kore.testhelpers.Utils;
import org.xbmc.kore.ui.MoviesActivity;
import org.xbmc.kore.ui.sections.video.MoviesActivity;
@RunWith(AndroidJUnit4.class)
@LargeTest

View File

@ -32,7 +32,7 @@ import org.xbmc.kore.R;
import org.xbmc.kore.testhelpers.EspressoTestUtils;
import org.xbmc.kore.testhelpers.LoaderIdlingResource;
import org.xbmc.kore.testhelpers.Utils;
import org.xbmc.kore.ui.MusicActivity;
import org.xbmc.kore.ui.sections.audio.MusicActivity;
import static android.support.test.espresso.Espresso.onView;
import static android.support.test.espresso.action.ViewActions.click;

View File

@ -20,7 +20,7 @@
<!-- Activities -->
<activity
android:name="org.xbmc.kore.ui.RemoteActivity"
android:name="org.xbmc.kore.ui.sections.remote.RemoteActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -51,17 +51,17 @@
</intent-filter>
</activity>
<activity android:name="org.xbmc.kore.ui.hosts.HostManagerActivity"/>
<activity android:name="org.xbmc.kore.ui.hosts.AddHostActivity"/>
<activity android:name="org.xbmc.kore.ui.hosts.EditHostActivity"/>
<activity android:name="org.xbmc.kore.ui.MoviesActivity"/>
<activity android:name="org.xbmc.kore.ui.TVShowsActivity"/>
<activity android:name="org.xbmc.kore.ui.MusicActivity"/>
<activity android:name="org.xbmc.kore.ui.AddonsActivity"/>
<activity android:name="org.xbmc.kore.ui.SettingsActivity"/>
<activity android:name="org.xbmc.kore.ui.FileActivity"/>
<activity android:name="org.xbmc.kore.ui.PVRActivity"/>
<activity android:name="org.xbmc.kore.ui.AllCastActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.hosts.HostManagerActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.hosts.AddHostActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.hosts.EditHostActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.video.MoviesActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.video.TVShowsActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.audio.MusicActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.addon.AddonsActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.settings.SettingsActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.file.FileActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.video.PVRActivity"/>
<activity android:name="org.xbmc.kore.ui.sections.video.AllCastActivity"/>
<!-- Providers -->
<provider

View File

@ -19,14 +19,12 @@ import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.os.IBinder;
import android.support.v4.app.NotificationCompat;
import android.support.v4.app.TaskStackBuilder;
import android.view.View;
@ -39,7 +37,7 @@ import org.xbmc.kore.host.HostConnectionObserver;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.type.ListType;
import org.xbmc.kore.jsonrpc.type.PlayerType;
import org.xbmc.kore.ui.RemoteActivity;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.CharacterDrawable;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -187,4 +187,12 @@ public abstract class AbstractListFragment extends Fragment {
public BaseAdapter getAdapter() {
return adapter;
}
/**
* Returns the view that is displayed when the gridview has no items to show
* @return
*/
public TextView getEmptyView() {
return emptyView;
}
}

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.generic;
import android.app.Activity;
import android.app.AlertDialog;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.generic;
import android.animation.ValueAnimator;
import android.app.Activity;
@ -45,7 +45,15 @@ import org.xbmc.kore.R;
import org.xbmc.kore.Settings;
import org.xbmc.kore.host.HostInfo;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.ui.hosts.HostManagerActivity;
import org.xbmc.kore.ui.sections.addon.AddonsActivity;
import org.xbmc.kore.ui.sections.audio.MusicActivity;
import org.xbmc.kore.ui.sections.file.FileActivity;
import org.xbmc.kore.ui.sections.hosts.HostManagerActivity;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.ui.sections.settings.SettingsActivity;
import org.xbmc.kore.ui.sections.video.MoviesActivity;
import org.xbmc.kore.ui.sections.video.PVRActivity;
import org.xbmc.kore.ui.sections.video.TVShowsActivity;
import org.xbmc.kore.utils.LogUtils;
import java.util.ArrayList;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.generic;
import android.app.Activity;
import android.app.AlertDialog;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.addon;
import android.annotation.TargetApi;
import android.content.Context;
@ -22,7 +22,6 @@ import android.content.res.Resources;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.addon;
import android.content.Context;
import android.content.SharedPreferences;
@ -27,6 +27,7 @@ import android.view.ViewGroup;
import com.astuetz.PagerSlidingTabStrip;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.sections.file.MediaFileListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.TabsAdapter;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.addon;
import android.annotation.TargetApi;
import android.app.Activity;

View File

@ -13,11 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.addon;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
@ -28,15 +26,12 @@ import android.view.ViewGroup;
import com.astuetz.PagerSlidingTabStrip;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.sections.file.MediaFileListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.TabsAdapter;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import butterknife.ButterKnife;
import butterknife.InjectView;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.addon;
import android.annotation.TargetApi;
import android.content.Intent;
@ -30,6 +30,9 @@ import android.view.View;
import android.view.Window;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -1,4 +1,4 @@
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.addon;
import android.support.v4.app.Fragment;
import android.view.View;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.content.res.Resources;
@ -58,6 +58,7 @@ import org.xbmc.kore.jsonrpc.method.Player;
import org.xbmc.kore.jsonrpc.method.Playlist;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.ui.AbstractDetailsFragment;
import org.xbmc.kore.utils.FileDownloadHelper;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.app.Activity;
@ -46,6 +46,7 @@ import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.os.Bundle;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.app.Activity;
@ -40,6 +40,7 @@ import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.content.DialogInterface;
@ -55,6 +55,7 @@ import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.provider.MediaProvider;
import org.xbmc.kore.ui.AbstractDetailsFragment;
import org.xbmc.kore.utils.FileDownloadHelper;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.app.Activity;
import android.content.Context;
@ -38,6 +38,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.content.Intent;
@ -30,6 +30,9 @@ import android.view.MenuItem;
import android.view.View;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.os.Bundle;
import android.support.v4.app.Fragment;
@ -25,6 +25,7 @@ import android.view.ViewGroup;
import com.astuetz.PagerSlidingTabStrip;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.TabsAdapter;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.app.AlertDialog;
@ -54,6 +54,7 @@ import org.xbmc.kore.jsonrpc.method.Playlist;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractDetailsFragment;
import org.xbmc.kore.utils.FileDownloadHelper;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.app.Activity;
@ -37,6 +37,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.audio;
import android.annotation.TargetApi;
import android.app.Activity;
@ -46,12 +46,12 @@ import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.provider.MediaProvider;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.FileDownloadHelper;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;
import org.xbmc.kore.utils.UIUtils;
import java.io.File;
import java.util.ArrayList;
/**

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.file;
import android.annotation.TargetApi;
import android.content.Intent;
@ -27,6 +27,10 @@ import android.view.MenuItem;
import android.view.Window;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.OnBackPressedListener;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.Utils;
/**

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.file;
import android.app.Activity;
import android.os.Bundle;
@ -25,6 +25,7 @@ import android.view.ViewGroup;
import com.astuetz.PagerSlidingTabStrip;
import org.xbmc.kore.R;
import org.xbmc.kore.jsonrpc.method.Files;
import org.xbmc.kore.ui.OnBackPressedListener;
import org.xbmc.kore.utils.TabsAdapter;
import butterknife.ButterKnife;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.file;
import android.content.Context;
import android.content.res.Resources;
@ -44,6 +44,7 @@ import org.xbmc.kore.jsonrpc.type.ItemType;
import org.xbmc.kore.jsonrpc.type.ListType;
import org.xbmc.kore.jsonrpc.type.PlayerType;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.ui.AbstractListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;
@ -142,7 +143,7 @@ public class MediaFileListFragment extends AbstractListFragment {
hostManager = HostManager.getInstance(getActivity());
emptyView.setOnClickListener(new View.OnClickListener() {
getEmptyView().setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!atRootDirectory())
@ -242,7 +243,7 @@ public class MediaFileListFragment extends AbstractListFragment {
}
browseRootAlready = true;
emptyView.setText(getString(R.string.source_empty));
getEmptyView().setText(getString(R.string.source_empty));
((MediaFileListAdapter) getAdapter()).setFilelistItems(rootFileLocation);
}

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.content.Intent;
import android.os.Bundle;
@ -26,7 +26,7 @@ import org.xbmc.kore.R;
import org.xbmc.kore.host.HostInfo;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.RemoteActivity;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
/**
* Add host wizard.

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.app.Activity;
import android.content.Context;
@ -39,7 +39,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.ApiCallback;
import org.xbmc.kore.jsonrpc.HostConnection;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.NavigationDrawerFragment;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import java.util.Arrays;
import java.util.HashSet;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.app.Activity;
import android.os.Bundle;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.app.Activity;
import android.content.Context;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.content.Intent;
import android.content.res.TypedArray;
@ -26,7 +26,6 @@ import org.xbmc.kore.R;
import org.xbmc.kore.host.HostInfo;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.utils.LogUtils;
/**
* Edits a host

View File

@ -13,14 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.text.TextUtils;
import android.view.LayoutInflater;
@ -33,7 +32,6 @@ import android.widget.EditText;
import android.widget.Toast;
import org.xbmc.kore.R;
import org.xbmc.kore.Settings;
import org.xbmc.kore.eventclient.EventServerConnection;
import org.xbmc.kore.host.HostInfo;
import org.xbmc.kore.jsonrpc.ApiCallback;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.app.AlertDialog;
import android.app.Dialog;
@ -44,7 +44,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.ApiCallback;
import org.xbmc.kore.jsonrpc.HostConnection;
import org.xbmc.kore.jsonrpc.method.JSONRPC;
import org.xbmc.kore.ui.RemoteActivity;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui.hosts;
package org.xbmc.kore.ui.sections.hosts;
import android.os.Bundle;
@ -25,7 +25,7 @@ import android.view.MenuItem;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.NavigationDrawerFragment;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.utils.LogUtils;
/**

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.remote;
import android.app.Activity;
import android.content.res.Resources;
@ -54,8 +54,9 @@ import org.xbmc.kore.jsonrpc.type.GlobalType;
import org.xbmc.kore.jsonrpc.type.ListType;
import org.xbmc.kore.jsonrpc.type.PlayerType;
import org.xbmc.kore.jsonrpc.type.VideoType;
import org.xbmc.kore.ui.generic.GenericSelectDialog;
import org.xbmc.kore.ui.sections.video.AllCastActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.RepeatListener;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;
@ -72,7 +73,7 @@ import butterknife.OnClick;
public class NowPlayingFragment extends Fragment
implements HostConnectionObserver.PlayerEventsObserver,
HostConnectionObserver.ApplicationEventsObserver,
GenericSelectDialog.GenericSelectDialogListener {
GenericSelectDialog.GenericSelectDialogListener {
private static final String TAG = LogUtils.makeLogTag(NowPlayingFragment.class);
/**

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.remote;
import android.content.res.Resources;
import android.content.res.TypedArray;

View File

@ -13,11 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.remote;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Point;
import android.net.Uri;
import android.os.Bundle;
@ -28,8 +26,6 @@ import android.support.v4.view.ViewPager;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.Menu;
@ -58,8 +54,10 @@ import org.xbmc.kore.jsonrpc.type.ListType;
import org.xbmc.kore.jsonrpc.type.PlayerType;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.service.ConnectionObserversManagerService;
import org.xbmc.kore.ui.hosts.AddHostActivity;
import org.xbmc.kore.ui.hosts.AddHostFragmentFinish;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.generic.SendTextDialogFragment;
import org.xbmc.kore.ui.sections.hosts.AddHostActivity;
import org.xbmc.kore.ui.views.CirclePageIndicator;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.TabsAdapter;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.remote;
import android.annotation.TargetApi;
import android.content.res.ColorStateList;
@ -37,7 +37,6 @@ import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;
import org.xbmc.kore.R;
import org.xbmc.kore.eventclient.ButtonCodes;
@ -49,11 +48,9 @@ import org.xbmc.kore.host.HostInfo;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.ApiCallback;
import org.xbmc.kore.jsonrpc.ApiMethod;
import org.xbmc.kore.jsonrpc.method.Application;
import org.xbmc.kore.jsonrpc.method.GUI;
import org.xbmc.kore.jsonrpc.method.Input;
import org.xbmc.kore.jsonrpc.method.Player;
import org.xbmc.kore.jsonrpc.type.ApplicationType;
import org.xbmc.kore.jsonrpc.type.GlobalType;
import org.xbmc.kore.jsonrpc.type.ListType;
import org.xbmc.kore.jsonrpc.type.PlayerType;

View File

@ -1,7 +1,7 @@
/*
* Copyright (C) 2013, Antonio Mendes Silva
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.settings;
import android.app.Activity;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.settings;
import android.content.SharedPreferences;
import android.os.Bundle;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.settings;
import android.Manifest;
import android.content.Intent;
@ -35,6 +35,7 @@ import org.xbmc.kore.R;
import org.xbmc.kore.Settings;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.service.ConnectionObserversManagerService;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,9 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
@ -38,6 +37,8 @@ import android.widget.TextView;
import org.xbmc.kore.R;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.type.VideoType;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.app.AlertDialog;
@ -57,6 +57,7 @@ import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.jsonrpc.type.VideoType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractDetailsFragment;
import org.xbmc.kore.utils.FileDownloadHelper;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.app.Activity;
@ -43,6 +43,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.content.Intent;
@ -30,6 +30,9 @@ import android.view.View;
import android.view.Window;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.content.Intent;
@ -28,6 +28,9 @@ import android.view.MenuItem;
import android.view.Window;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.content.Context;
import android.os.Bundle;
@ -36,14 +36,10 @@ import org.xbmc.kore.jsonrpc.method.PVR;
import org.xbmc.kore.jsonrpc.type.PVRType;
import org.xbmc.kore.utils.LogUtils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;
import butterknife.ButterKnife;
import butterknife.InjectView;

View File

@ -13,21 +13,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.media.Image;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
@ -40,13 +35,13 @@ import android.widget.TextView;
import android.widget.Toast;
import org.xbmc.kore.R;
import org.xbmc.kore.Settings;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.ApiCallback;
import org.xbmc.kore.jsonrpc.ApiException;
import org.xbmc.kore.jsonrpc.method.PVR;
import org.xbmc.kore.jsonrpc.method.Player;
import org.xbmc.kore.jsonrpc.type.PVRType;
import org.xbmc.kore.ui.OnBackPressedListener;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.os.Bundle;
import android.support.v4.app.Fragment;
@ -25,6 +25,7 @@ import android.view.ViewGroup;
import com.astuetz.PagerSlidingTabStrip;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.OnBackPressedListener;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.TabsAdapter;

View File

@ -13,21 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
@ -38,10 +32,8 @@ import android.widget.TextView;
import android.widget.Toast;
import org.xbmc.kore.R;
import org.xbmc.kore.Settings;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.ApiCallback;
import org.xbmc.kore.jsonrpc.ApiException;
import org.xbmc.kore.jsonrpc.method.PVR;
import org.xbmc.kore.jsonrpc.method.Player;
import org.xbmc.kore.jsonrpc.type.PVRType;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.content.Context;
@ -49,6 +49,7 @@ import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.jsonrpc.type.VideoType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractDetailsFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.app.AlertDialog;
import android.content.DialogInterface;
@ -53,6 +53,7 @@ import org.xbmc.kore.jsonrpc.method.VideoLibrary;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractDetailsFragment;
import org.xbmc.kore.utils.FileDownloadHelper;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.content.Context;
@ -45,6 +45,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.MediaPlayerUtils;
import org.xbmc.kore.utils.UIUtils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.app.Activity;
@ -43,6 +43,7 @@ import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.provider.MediaContract;
import org.xbmc.kore.provider.MediaDatabase;
import org.xbmc.kore.service.library.LibrarySyncService;
import org.xbmc.kore.ui.AbstractCursorListFragment;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.UIUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.xbmc.kore.ui;
package org.xbmc.kore.ui.sections.video;
import android.annotation.TargetApi;
import android.content.Intent;
@ -30,6 +30,9 @@ import android.view.View;
import android.view.Window;
import org.xbmc.kore.R;
import org.xbmc.kore.ui.BaseActivity;
import org.xbmc.kore.ui.generic.NavigationDrawerFragment;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import org.xbmc.kore.utils.LogUtils;
import org.xbmc.kore.utils.Utils;

View File

@ -21,7 +21,6 @@ import android.content.Intent;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.Toast;
import org.xbmc.kore.R;
@ -31,7 +30,7 @@ import org.xbmc.kore.jsonrpc.ApiCallback;
import org.xbmc.kore.jsonrpc.method.Player;
import org.xbmc.kore.jsonrpc.method.Playlist;
import org.xbmc.kore.jsonrpc.type.PlaylistType;
import org.xbmc.kore.ui.RemoteActivity;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import java.util.ArrayList;

View File

@ -47,7 +47,7 @@ import org.xbmc.kore.host.HostInfo;
import org.xbmc.kore.host.HostManager;
import org.xbmc.kore.jsonrpc.type.GlobalType;
import org.xbmc.kore.jsonrpc.type.VideoType;
import org.xbmc.kore.ui.RemoteActivity;
import org.xbmc.kore.ui.sections.remote.RemoteActivity;
import java.io.File;
import java.util.ArrayList;

View File

@ -49,6 +49,6 @@
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:name="org.xbmc.kore.ui.NavigationDrawerFragment"/>
android:name="org.xbmc.kore.ui.generic.NavigationDrawerFragment"/>
</android.support.v4.widget.DrawerLayout>

View File

@ -20,7 +20,7 @@
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="org.xbmc.kore.ui.hosts.HostManagerActivity">
tools:context="org.xbmc.kore.ui.sections.hosts.HostManagerActivity">
<LinearLayout
android:layout_width="match_parent"
@ -32,13 +32,13 @@
<fragment android:id="@+id/hosts_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="org.xbmc.kore.ui.hosts.HostListFragment" />
android:name="org.xbmc.kore.ui.sections.hosts.HostListFragment" />
</LinearLayout>
<fragment android:id="@+id/navigation_drawer"
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:name="org.xbmc.kore.ui.NavigationDrawerFragment" />
android:name="org.xbmc.kore.ui.generic.NavigationDrawerFragment" />
</android.support.v4.widget.DrawerLayout>

View File

@ -59,6 +59,6 @@
android:layout_width="@dimen/navigation_drawer_width"
android:layout_height="match_parent"
android:layout_gravity="start"
android:name="org.xbmc.kore.ui.NavigationDrawerFragment"/>
android:name="org.xbmc.kore.ui.generic.NavigationDrawerFragment"/>
</android.support.v4.widget.DrawerLayout>