Merge pull request #40 from DanhKE6D/master

Fix typo on ApiCallback.onSucess()
This commit is contained in:
Synced Synapse 2015-03-16 19:11:07 +00:00
commit 034fc14042
18 changed files with 60 additions and 60 deletions

View File

@ -156,7 +156,7 @@ public class HostConnectionObserver
JSONRPC.Ping ping = new JSONRPC.Ping();
ping.execute(connection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Ok, we've got a ping, if we were in a error or uninitialized state, update
if ((lastCallResult == PlayerEventsObserver.PLAYER_NO_RESULT) ||
(lastCallResult == PlayerEventsObserver.PLAYER_CONNECTION_ERROR)) {
@ -350,7 +350,7 @@ public class HostConnectionObserver
Player.GetActivePlayers getActivePlayers = new Player.GetActivePlayers();
getActivePlayers.execute(connection, new ApiCallback<ArrayList<PlayerType.GetActivePlayersReturnType>>() {
@Override
public void onSucess(ArrayList<PlayerType.GetActivePlayersReturnType> result) {
public void onSuccess(ArrayList<PlayerType.GetActivePlayersReturnType> result) {
if (result.isEmpty()) {
LogUtils.LOGD(TAG, "Nothing is playing");
notifyNothingIsPlaying(playerEventsObservers);
@ -390,7 +390,7 @@ public class HostConnectionObserver
Player.GetProperties getProperties = new Player.GetProperties(getActivePlayersResult.playerid, propertiesToGet);
getProperties.execute(connection, new ApiCallback<PlayerType.PropertyValue>() {
@Override
public void onSucess(PlayerType.PropertyValue result) {
public void onSuccess(PlayerType.PropertyValue result) {
chainCallGetItem(getActivePlayersResult, result);
}
@ -452,7 +452,7 @@ public class HostConnectionObserver
Player.GetItem getItem = new Player.GetItem(getActivePlayersResult.playerid, propertiesToGet);
getItem.execute(connection, new ApiCallback<ListType.ItemsAll>() {
@Override
public void onSucess(ListType.ItemsAll result) {
public void onSuccess(ListType.ItemsAll result) {
// Ok, now we got a result
notifySomethingIsPlaying(getActivePlayersResult, getPropertiesResult, result, playerEventsObservers);
}

View File

@ -20,7 +20,7 @@ package org.xbmc.kore.jsonrpc;
* When executing a method in JSON RPC, through
* {@link HostConnection#execute(ApiMethod, ApiCallback, android.os.Handler)},
* an object implementing this interface should be provided, to call after receiving the response
* from XBMC. Depending on the response {@link ApiCallback#onSucess(Object)} or {@link
* from XBMC. Depending on the response {@link ApiCallback#onSuccess(Object)} or {@link
* ApiCallback#onError(int, String)} will be called.
* * @param <T> Result type
*/
@ -30,7 +30,7 @@ public interface ApiCallback<T> {
* Callback that will be called after a sucessfull reponse from the XBMC JSON RPC method
* @param result The result that was obtained and sucessfully parsed from XBMC
*/
public abstract void onSucess(T result);
public abstract void onSuccess(T result);
/**
* Calllback that will be called when an error occurs executing the method on XBMC.

View File

@ -269,7 +269,7 @@ public abstract class ApiMethod<T> {
return new ApiCallback<T>() {
@Override
public void onSucess(T result) {
public void onSuccess(T result) {
}
@Override

View File

@ -285,7 +285,7 @@ public class HostConnection {
handler.post(new Runnable() {
@Override
public void run() {
callback.onSucess(result);
callback.onSuccess(result);
}
});
}
@ -328,7 +328,7 @@ public class HostConnection {
handler.post(new Runnable() {
@Override
public void run() {
callback.onSucess(result);
callback.onSuccess(result);
}
});
}
@ -734,7 +734,7 @@ public class HostConnection {
methodCallInfo.handler.post(new Runnable() {
@Override
public void run() {
callback.onSucess(result);
callback.onSuccess(result);
}
});
}

View File

@ -404,7 +404,7 @@ public class LibrarySyncService extends Service {
new VideoLibrary.GetMovieDetails(movieId, properties);
action.execute(hostConnection, new ApiCallback<VideoType.DetailsMovie>() {
@Override
public void onSucess(VideoType.DetailsMovie result) {
public void onSuccess(VideoType.DetailsMovie result) {
deleteMovies(contentResolver, hostId, movieId);
List<VideoType.DetailsMovie> movies = new ArrayList<VideoType.DetailsMovie>(1);
movies.add(result);
@ -438,7 +438,7 @@ public class LibrarySyncService extends Service {
VideoLibrary.GetMovies action = new VideoLibrary.GetMovies(limits, properties);
action.execute(hostConnection, new ApiCallback<List<VideoType.DetailsMovie>>() {
@Override
public void onSucess(List<VideoType.DetailsMovie> result) {
public void onSuccess(List<VideoType.DetailsMovie> result) {
if (startIdx == 0) {
// First call, delete movies from DB
deleteMovies(contentResolver, hostId, -1);
@ -603,7 +603,7 @@ public class LibrarySyncService extends Service {
new VideoLibrary.GetTVShowDetails(tvshowId, getTVShowsProperties);
action.execute(hostConnection, new ApiCallback<VideoType.DetailsTVShow>() {
@Override
public void onSucess(VideoType.DetailsTVShow result) {
public void onSuccess(VideoType.DetailsTVShow result) {
deleteTVShows(contentResolver, hostId, tvshowId);
List<VideoType.DetailsTVShow> tvShows = new ArrayList<>(1);
tvShows.add(result);
@ -638,7 +638,7 @@ public class LibrarySyncService extends Service {
VideoLibrary.GetTVShows action = new VideoLibrary.GetTVShows(limits, getTVShowsProperties);
action.execute(hostConnection, new ApiCallback<List<VideoType.DetailsTVShow>>() {
@Override
public void onSucess(List<VideoType.DetailsTVShow> result) {
public void onSuccess(List<VideoType.DetailsTVShow> result) {
allResults.addAll(result);
if (result.size() == LIMIT_SYNC_TVSHOWS) {
// Max limit returned, there may be some more movies
@ -759,7 +759,7 @@ public class LibrarySyncService extends Service {
VideoLibrary.GetSeasons action = new VideoLibrary.GetSeasons(tvShow.tvshowid, seasonsProperties);
action.execute(hostConnection, new ApiCallback<List<VideoType.DetailsSeason>>() {
@Override
public void onSucess(List<VideoType.DetailsSeason> result) {
public void onSuccess(List<VideoType.DetailsSeason> result) {
ContentValues seasonsValuesBatch[] = new ContentValues[result.size()];
int totalWatchedEpisodes = 0;
for (int i = 0; i < result.size(); i++) {
@ -847,7 +847,7 @@ public class LibrarySyncService extends Service {
VideoLibrary.GetEpisodes action = new VideoLibrary.GetEpisodes(tvShow.tvshowid, getEpisodesProperties);
action.execute(hostConnection, new ApiCallback<List<VideoType.DetailsEpisode>>() {
@Override
public void onSucess(List<VideoType.DetailsEpisode> result) {
public void onSuccess(List<VideoType.DetailsEpisode> result) {
ContentValues episodesValuesBatch[] = new ContentValues[result.size()];
for (int i = 0; i < result.size(); i++) {
VideoType.DetailsEpisode episode = result.get(i);
@ -937,7 +937,7 @@ public class LibrarySyncService extends Service {
AudioLibrary.GetArtists action = new AudioLibrary.GetArtists(limits, true, getArtistsProperties);
action.execute(hostConnection, new ApiCallback<List<AudioType.DetailsArtist>>() {
@Override
public void onSucess(List<AudioType.DetailsArtist> result) {
public void onSuccess(List<AudioType.DetailsArtist> result) {
if (result == null) result = new ArrayList<>(0); // Safeguard
// First delete all music info
if (startIdx == 0) deleteMusicInfo(contentResolver, hostId);
@ -1005,7 +1005,7 @@ public class LibrarySyncService extends Service {
AudioLibrary.GetGenres action = new AudioLibrary.GetGenres(getGenresProperties);
action.execute(hostConnection, new ApiCallback<List<LibraryType.DetailsGenre>>() {
@Override
public void onSucess(List<LibraryType.DetailsGenre> result) {
public void onSuccess(List<LibraryType.DetailsGenre> result) {
if (result == null) result = new ArrayList<>(0); // Safeguard
ContentValues genresValuesBatch[] = new ContentValues[result.size()];
@ -1056,7 +1056,7 @@ public class LibrarySyncService extends Service {
AudioLibrary.GetAlbums action = new AudioLibrary.GetAlbums(limits, getAlbumsProperties);
action.execute(hostConnection, new ApiCallback<List<AudioType.DetailsAlbum>>() {
@Override
public void onSucess(List<AudioType.DetailsAlbum> result) {
public void onSuccess(List<AudioType.DetailsAlbum> result) {
if (result == null) result = new ArrayList<>(0); // Safeguard
// Insert the partial results
ContentValues albumValuesBatch[] = new ContentValues[result.size()];
@ -1154,7 +1154,7 @@ public class LibrarySyncService extends Service {
AudioLibrary.GetSongs action = new AudioLibrary.GetSongs(limits, getSongsProperties);
action.execute(hostConnection, new ApiCallback<List<AudioType.DetailsSong>>() {
@Override
public void onSucess(List<AudioType.DetailsSong> result) {
public void onSuccess(List<AudioType.DetailsSong> result) {
if (result == null) result = new ArrayList<>(0); // Safeguard
// Save partial results to DB
ContentValues songValuesBatch[] = new ContentValues[result.size()];
@ -1242,7 +1242,7 @@ public class LibrarySyncService extends Service {
VideoLibrary.GetMusicVideos action = new VideoLibrary.GetMusicVideos(properties);
action.execute(hostConnection, new ApiCallback<List<VideoType.DetailsMusicVideo>>() {
@Override
public void onSucess(List<VideoType.DetailsMusicVideo> result) {
public void onSuccess(List<VideoType.DetailsMusicVideo> result) {
deleteMusicVideos(contentResolver, hostId);
insertMusicVideos(orchestrator, contentResolver, result);
}

View File

@ -154,7 +154,7 @@ public class AddonDetailsFragment extends Fragment {
Addons.GetAddonDetails action = new Addons.GetAddonDetails(addonId, properties);
action.execute(hostManager.getConnection(), new ApiCallback<AddonType.Details>() {
@Override
public void onSucess(AddonType.Details result) {
public void onSuccess(AddonType.Details result) {
if (!isAdded()) return;
displayAddonDetails(result);
}
@ -193,7 +193,7 @@ public class AddonDetailsFragment extends Fragment {
Addons.ExecuteAddon action = new Addons.ExecuteAddon(addonId);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Do nothing
}
@ -213,7 +213,7 @@ public class AddonDetailsFragment extends Fragment {
Addons.SetAddonEnabled action = new Addons.SetAddonEnabled(addonId, !isEnabled);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
int messageResId = (!isEnabled) ? R.string.addon_enabled : R.string.addon_disabled;
Toast.makeText(getActivity(), messageResId, Toast.LENGTH_SHORT).show();

View File

@ -182,7 +182,7 @@ public class AddonListFragment extends Fragment
Addons.GetAddons action = new Addons.GetAddons(properties);
action.execute(hostManager.getConnection(), new ApiCallback<List<AddonType.Details>>() {
@Override
public void onSucess(List<AddonType.Details> result) {
public void onSuccess(List<AddonType.Details> result) {
if (!isAdded()) return;
adapter.clear();

View File

@ -262,7 +262,7 @@ public class AlbumDetailsFragment extends Fragment
Player.Open action = new Player.Open(item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Check whether we should switch to the remote
boolean switchToRemote = PreferenceManager
@ -465,7 +465,7 @@ public class AlbumDetailsFragment extends Fragment
getPlaylists.execute(hostManager.getConnection(), new ApiCallback<ArrayList<PlaylistType.GetPlaylistsReturnType>>() {
@Override
public void onSucess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
public void onSuccess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
if (!isAdded()) return;
// Ok, loop through the playlists, looking for the audio one
int audioPlaylistId = -1;
@ -486,7 +486,7 @@ public class AlbumDetailsFragment extends Fragment
Playlist.Add action = new Playlist.Add(audioPlaylistId, item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Got an error, show toast
Toast.makeText(getActivity(), R.string.item_added_to_playlist, Toast.LENGTH_SHORT)

View File

@ -340,7 +340,7 @@ public class MovieDetailsFragment extends Fragment
Player.Open action = new Player.Open(item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Check whether we should switch to the remote
boolean switchToRemote = PreferenceManager
@ -370,7 +370,7 @@ public class MovieDetailsFragment extends Fragment
getPlaylists.execute(hostManager.getConnection(), new ApiCallback<ArrayList<PlaylistType.GetPlaylistsReturnType>>() {
@Override
public void onSucess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
public void onSuccess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
if (!isAdded()) return;
// Ok, loop through the playlists, looking for the video one
int videoPlaylistId = -1;
@ -387,7 +387,7 @@ public class MovieDetailsFragment extends Fragment
Playlist.Add action = new Playlist.Add(videoPlaylistId, item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Got an error, show toast
Toast.makeText(getActivity(), R.string.item_added_to_playlist, Toast.LENGTH_SHORT)
@ -437,7 +437,7 @@ public class MovieDetailsFragment extends Fragment
new VideoLibrary.SetMovieDetails(movieId, newPlaycount, null);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Force a refresh, but don't show a message
startSync(true);

View File

@ -299,7 +299,7 @@ public class MusicVideoDetailsFragment extends Fragment
Player.Open action = new Player.Open(item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Check whether we should switch to the remote
boolean switchToRemote = PreferenceManager
@ -329,7 +329,7 @@ public class MusicVideoDetailsFragment extends Fragment
getPlaylists.execute(hostManager.getConnection(), new ApiCallback<ArrayList<PlaylistType.GetPlaylistsReturnType>>() {
@Override
public void onSucess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
public void onSuccess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
if (!isAdded()) return;
// Ok, loop through the playlists, looking for the video one
int videoPlaylistId = -1;
@ -346,7 +346,7 @@ public class MusicVideoDetailsFragment extends Fragment
Playlist.Add action = new Playlist.Add(videoPlaylistId, item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Got an error, show toast
Toast.makeText(getActivity(), R.string.item_added_to_playlist, Toast.LENGTH_SHORT)

View File

@ -242,7 +242,7 @@ public class NowPlayingFragment extends Fragment
*/
private ApiCallback<Integer> defaultPlaySpeedChangedCallback = new ApiCallback<Integer>() {
@Override
public void onSucess(Integer result) {
public void onSuccess(Integer result) {
if (!isAdded()) return;
UIUtils.setPlayPauseButtonIcon(getActivity(), playButton, result);
}
@ -309,7 +309,7 @@ public class NowPlayingFragment extends Fragment
Application.SetMute action = new Application.SetMute();
action.execute(hostManager.getConnection(), new ApiCallback<Boolean>() {
@Override
public void onSucess(Boolean result) {
public void onSuccess(Boolean result) {
if (!isAdded()) return;
if (result) {
Resources.Theme theme = getActivity().getTheme();
@ -333,7 +333,7 @@ public class NowPlayingFragment extends Fragment
Player.SetShuffle action = new Player.SetShuffle(currentActivePlayerId);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Force a refresh
hostConnectionObserver.forceRefreshResults();
@ -349,7 +349,7 @@ public class NowPlayingFragment extends Fragment
Player.SetRepeat action = new Player.SetRepeat(currentActivePlayerId, PlayerType.Repeat.CYCLE);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
hostConnectionObserver.forceRefreshResults();
}
@ -446,7 +446,7 @@ public class NowPlayingFragment extends Fragment
Input.ExecuteAction syncAudioAction = new Input.ExecuteAction(Input.ExecuteAction.AUDIODELAY);
syncAudioAction.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Notify enclosing activity to switch panels
nowPlayingListener.SwitchToRemotePanel();
@ -471,7 +471,7 @@ public class NowPlayingFragment extends Fragment
Application.GetProperties getProperties = new Application.GetProperties(Application.GetProperties.VERSION);
getProperties.execute(hostManager.getConnection(), new ApiCallback<ApplicationType.PropertyValue>() {
@Override
public void onSucess(ApplicationType.PropertyValue result) {
public void onSuccess(ApplicationType.PropertyValue result) {
if (!isAdded()) return;
// Ok, we've got a version, decide which method to call
if (result.version.major < 13) {
@ -495,7 +495,7 @@ public class NowPlayingFragment extends Fragment
Input.ExecuteAction syncSubtitleAction = new Input.ExecuteAction(Input.ExecuteAction.SUBTITLEDELAY);
syncSubtitleAction.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Notify enclosing activity to switch panels
nowPlayingListener.SwitchToRemotePanel();
@ -523,7 +523,7 @@ public class NowPlayingFragment extends Fragment
Addons.ExecuteAddon action = new Addons.ExecuteAddon(Addons.ExecuteAddon.ADDON_SUBTITLES);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Notify enclosing activity to switch panels
nowPlayingListener.SwitchToRemotePanel();
@ -554,7 +554,7 @@ public class NowPlayingFragment extends Fragment
LogUtils.LOGD(TAG, "Activating subtitles window.");
action.execute(httpHostConnection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
LogUtils.LOGD(TAG, "Sucessfully activated subtitles window.");
}
@ -974,7 +974,7 @@ public class NowPlayingFragment extends Fragment
Player.Seek seekAction = new Player.Seek(currentActivePlayerId, positionTime);
seekAction.execute(hostManager.getConnection(), new ApiCallback<PlayerType.SeekReturnType>() {
@Override
public void onSucess(PlayerType.SeekReturnType result) {
public void onSuccess(PlayerType.SeekReturnType result) {
// Ignore
}

View File

@ -219,7 +219,7 @@ public class PlaylistFragment extends Fragment
// */
// private ApiCallback<Integer> defaultPlaySpeedChangedCallback = new ApiCallback<Integer>() {
// @Override
// public void onSucess(Integer result) {
// public void onSuccess(Integer result) {
// UIUtils.setPlayPauseButtonIcon(getActivity(), playButton, result);
// }
//
@ -379,7 +379,7 @@ public class PlaylistFragment extends Fragment
Playlist.GetPlaylists getPlaylists = new Playlist.GetPlaylists();
getPlaylists.execute(hostManager.getConnection(), new ApiCallback<ArrayList<PlaylistType.GetPlaylistsReturnType>>() {
@Override
public void onSucess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
public void onSuccess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
if (!isAdded()) return;
getPlaylistItems(getActivePlayerResult, getItemResult, result);
}
@ -433,7 +433,7 @@ public class PlaylistFragment extends Fragment
Playlist.GetItems getItems = new Playlist.GetItems(playlistId, propertiesToGet);
getItems.execute(hostManager.getConnection(), new ApiCallback<List<ListType.ItemsAll>>() {
@Override
public void onSucess(List<ListType.ItemsAll> result) {
public void onSuccess(List<ListType.ItemsAll> result) {
if (!isAdded()) return;
// Ok, we've got all the info, save and display playlist
lastGetPlaylistItemsResult = result;

View File

@ -246,7 +246,7 @@ public class RemoteActivity extends BaseActivity
VideoLibrary.Scan actionScanVideo = new VideoLibrary.Scan();
actionScanVideo.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Great, now update the Audio library
AudioLibrary.Scan actionScanAudio = new AudioLibrary.Scan();
actionScanAudio.execute(hostManager.getConnection(), null, callbackHandler);

View File

@ -301,7 +301,7 @@ public class RemoteFragment extends Fragment
*/
private ApiCallback<Integer> defaultPlaySpeedChangedCallback = new ApiCallback<Integer>() {
@Override
public void onSucess(Integer result) {
public void onSuccess(Integer result) {
if (!isAdded()) return;
UIUtils.setPlayPauseButtonIcon(getActivity(), playButton, result);
}

View File

@ -333,7 +333,7 @@ public class TVShowEpisodeDetailsFragment extends Fragment
Player.Open action = new Player.Open(item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Check whether we should switch to the remote
boolean switchToRemote = PreferenceManager
@ -363,7 +363,7 @@ public class TVShowEpisodeDetailsFragment extends Fragment
getPlaylists.execute(hostManager.getConnection(), new ApiCallback<ArrayList<PlaylistType.GetPlaylistsReturnType>>() {
@Override
public void onSucess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
public void onSuccess(ArrayList<PlaylistType.GetPlaylistsReturnType> result) {
if (!isAdded()) return;
// Ok, loop through the playlists, looking for the video one
int videoPlaylistId = -1;
@ -380,7 +380,7 @@ public class TVShowEpisodeDetailsFragment extends Fragment
Playlist.Add action = new Playlist.Add(videoPlaylistId, item);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
if (!isAdded()) return;
// Got an error, show toast
Toast.makeText(getActivity(), R.string.item_added_to_playlist, Toast.LENGTH_SHORT)
@ -421,7 +421,7 @@ public class TVShowEpisodeDetailsFragment extends Fragment
new VideoLibrary.SetEpisodeDetails(episodeId, newPlaycount, null);
action.execute(hostManager.getConnection(), new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Force a refresh, but don't show a message
if (!isAdded()) return;
startSync(true);

View File

@ -257,7 +257,7 @@ public class HostFragmentManualConfiguration extends Fragment {
final JSONRPC.Ping httpPing = new JSONRPC.Ping();
httpPing.execute(hostConnection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
LogUtils.LOGD(TAG, "Successfully connected to new host through HTTP.");
// Great, we managed to connect through HTTP, let's check it's version
chainCallCheckTcpConnection(hostConnection, hostInfo);
@ -277,7 +277,7 @@ public class HostFragmentManualConfiguration extends Fragment {
hostConnection.setProtocol(HostConnection.PROTOCOL_TCP);
tcpPing.execute(hostConnection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Great, we managed to connect through HTTP and TCP
hostConnection.disconnect();
LogUtils.LOGD(TAG, "Successfully connected to new host through TCP.");

View File

@ -172,7 +172,7 @@ public class HostListFragment extends Fragment {
JSONRPC.Ping ping = new JSONRPC.Ping();
ping.execute(hostConnection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
hostInfoRow.status = HostInfoRow.HOST_STATUS_AVAILABLE;
hostConnection.disconnect();
if (adapter != null)

View File

@ -274,7 +274,7 @@ public class FileDownloadHelper {
JSONRPC.Ping action = new JSONRPC.Ping();
action.execute(httpHostConnection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Ok, continue, iterate through the song list and launch a download for each
final DownloadManager downloadManager = (DownloadManager)context.getSystemService(Context.DOWNLOAD_SERVICE);
@ -307,7 +307,7 @@ public class FileDownloadHelper {
JSONRPC.Ping action = new JSONRPC.Ping();
action.execute(httpHostConnection, new ApiCallback<String>() {
@Override
public void onSucess(String result) {
public void onSuccess(String result) {
// Ok, continue, iterate through the song list and launch a download for each
final DownloadManager downloadManager = (DownloadManager)context.getSystemService(Context.DOWNLOAD_SERVICE);
@ -354,7 +354,7 @@ public class FileDownloadHelper {
Files.PrepareDownload action = new Files.PrepareDownload(mediaInfo.fileName);
action.execute(httpHostConnection, new ApiCallback<FilesType.PrepareDownloadReturnType>() {
@Override
public void onSucess(FilesType.PrepareDownloadReturnType result) {
public void onSuccess(FilesType.PrepareDownloadReturnType result) {
// If the file exists and it's to be overwritten, delete it,
// as the DownloadManager always creates a new name
if (fileHandlingMode == OVERWRITE_FILES) {