Lots of progress with dynamic theming, the nav drawer now uses a RecyclerView, AboutDeveloperDialogHelper is now a DialogFragment, RTL support (to suppress Lint warnings), other various small fixes, cleaned up and formatted lot of code (and removed un-used resources), R.string.ok > android.R.string.ok, R.string.cancel > android.R.string.cancel, switched dialog helpers to DialogFragments.
This commit is contained in:
parent
c1b258dadd
commit
7ce86afd74
265 changed files with 2853 additions and 2292 deletions
|
|
@ -1,9 +1,9 @@
|
|||
package com.kabouzeid.gramophone.lastfm;
|
||||
|
||||
/**
|
||||
* Created by karim on 15.01.15.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMUtil {
|
||||
public static String BASE_URL = "ws.audioscrobbler.com";
|
||||
public static String API_KEY = "bd9c6ea4d55ec9ed3af7d276e5ece304";
|
||||
public static final String BASE_URL = "ws.audioscrobbler.com";
|
||||
public static final String API_KEY = "bd9c6ea4d55ec9ed3af7d276e5ece304";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by karim on 01.01.15.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMAlbumImageUrlLoader {
|
||||
public static final String TAG = LastFMAlbumImageUrlLoader.class.getSimpleName();
|
||||
|
|
@ -50,9 +50,9 @@ public class LastFMAlbumImageUrlLoader {
|
|||
}
|
||||
}
|
||||
|
||||
public static interface AlbumImageUrlLoaderCallback {
|
||||
public void onAlbumImageUrlLoaded(String url);
|
||||
public interface AlbumImageUrlLoaderCallback {
|
||||
void onAlbumImageUrlLoaded(String url);
|
||||
|
||||
public void onError();
|
||||
void onError();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by karim on 24.12.14.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMAlbumInfoUtil {
|
||||
public static final String TAG = LastFMAlbumInfoUtil.class.getSimpleName();
|
||||
|
||||
private static String AUTO_CORRECT = "1";
|
||||
private static final String AUTO_CORRECT = "1";
|
||||
|
||||
public static String getAlbumUrl(String album, String artist) {
|
||||
if (album != null) {
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by karim on 01.01.15.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMArtistBiographyLoader {
|
||||
public static final String TAG = LastFMArtistBiographyLoader.class.getSimpleName();
|
||||
|
|
@ -55,7 +55,7 @@ public class LastFMArtistBiographyLoader {
|
|||
app.addToVolleyRequestQueue(artistInfoJSONRequest);
|
||||
}
|
||||
|
||||
public static interface ArtistBioLoaderCallback {
|
||||
public void onArtistBioLoaded(String bio);
|
||||
public interface ArtistBioLoaderCallback {
|
||||
void onArtistBioLoaded(String bio);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by karim on 01.01.15.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMArtistImageUrlLoader {
|
||||
public static final String TAG = LastFMArtistImageUrlLoader.class.getSimpleName();
|
||||
|
|
@ -42,7 +42,7 @@ public class LastFMArtistImageUrlLoader {
|
|||
}
|
||||
}
|
||||
|
||||
public static interface ArtistImageUrlLoaderCallback {
|
||||
public void onArtistImageUrlLoaded(String url);
|
||||
public interface ArtistImageUrlLoaderCallback {
|
||||
void onArtistImageUrlLoaded(String url);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,12 +16,13 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by karim on 24.12.14.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMArtistInfoUtil {
|
||||
public static final String TAG = LastFMArtistInfoUtil.class.getSimpleName();
|
||||
|
||||
private static String AUTO_CORRECT = "1";
|
||||
public static final String TAG = LastFMArtistInfoUtil.class.getSimpleName();
|
||||
@SuppressWarnings("FieldCanBeLocal")
|
||||
private static final String AUTO_CORRECT = "1";
|
||||
|
||||
public static String getArtistUrl(String artist) {
|
||||
if (artist != null) {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import org.json.JSONException;
|
|||
import org.json.JSONObject;
|
||||
|
||||
/**
|
||||
* Created by karim on 01.01.15.
|
||||
* @author Karim Abou Zeid (kabouzeid)
|
||||
*/
|
||||
public class LastFMArtistThumbnailUrlLoader {
|
||||
public static final String TAG = LastFMArtistThumbnailUrlLoader.class.getSimpleName();
|
||||
|
|
@ -42,7 +42,7 @@ public class LastFMArtistThumbnailUrlLoader {
|
|||
}
|
||||
}
|
||||
|
||||
public static interface ArtistThumbnailUrlLoaderCallback {
|
||||
public void onArtistThumbnailUrlLoaded(String url);
|
||||
public interface ArtistThumbnailUrlLoaderCallback {
|
||||
void onArtistThumbnailUrlLoaded(String url);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue