예제 #1
0
	public void onLoaderReset()
	{
		Log.e("DolphinEmu", "[PlatformGamesFragment] " + mPlatform + ": Loader reset; clearing data from view.");
		if (mAdapter != null)
		{
			mAdapter.swapCursor(null);
		}
	}
예제 #2
0
	public void onLoadFinished(Loader<Cursor> loader, Cursor data)
	{
		// TODO Play some sort of load-finished animation; maybe fade the list in.

		Log.d("DolphinEmu", "[PlatformGamesFragment] " + mPlatform + ": Load finished, swapping cursor...");
		Log.d("DolphinEmu", "[PlatformGamesFragment] " + mPlatform + ": Cursor size: " + data.getCount());
		if (mAdapter != null)
		{
			mAdapter.swapCursor(data);
		}
		else
		{
			Log.e("DolphinEmu", "[PlatformGamesFragment] " + mPlatform + ": No adapter available.");
		}
	}