mirror of
https://github.com/whyorean/AuroraStore.git
synced 2026-06-19 21:19:16 -04:00
Minor lint fixes
This commit is contained in:
@@ -21,9 +21,7 @@ class CategoryAppsTask extends GoogleApiAsyncTask {
|
||||
if (!iterator.hasNext()) {
|
||||
return null;
|
||||
}
|
||||
for (App app: iterator.next()) {
|
||||
apps.add(app);
|
||||
}
|
||||
apps.addAll(iterator.next());
|
||||
} catch (Throwable e) {
|
||||
return e;
|
||||
}
|
||||
|
||||
@@ -21,12 +21,10 @@ public class CategoryManager {
|
||||
|
||||
private Activity activity;
|
||||
private SharedPreferencesTranslator translator;
|
||||
private SharedPreferences prefs;
|
||||
|
||||
public CategoryManager(Activity activity) {
|
||||
this.activity = activity;
|
||||
prefs = PreferenceManager.getDefaultSharedPreferences(activity);
|
||||
translator = new SharedPreferencesTranslator(prefs);
|
||||
translator = new SharedPreferencesTranslator(PreferenceManager.getDefaultSharedPreferences(activity));
|
||||
}
|
||||
|
||||
public String getCategoryName(String categoryId) {
|
||||
|
||||
@@ -69,7 +69,7 @@ public class NativeHttpClientAdapter extends HttpClientAdapter {
|
||||
}
|
||||
addBody(connection, body);
|
||||
|
||||
byte[] content = new byte[0];
|
||||
byte[] content;
|
||||
Log.i(getClass().getName(), "Requesting " + connection.getURL().toString());
|
||||
connection.connect();
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ class ReviewAddTask extends AsyncTask<com.github.yeriomin.yalpstore.model.Review
|
||||
try {
|
||||
review = wrapper.addOrEditReview(packageName, params[0]);
|
||||
} catch (IOException e) {
|
||||
System.out.println(e.getClass().getName() + " " + e.getMessage());
|
||||
e.printStackTrace();
|
||||
return e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user