mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 22:19:13 +00:00
Remove some lint warnings
This commit is contained in:
+5
-7
@@ -190,14 +190,12 @@ public class DatabaseHelper {
|
||||
/**
|
||||
* When checking in, store info on the event, the competitor and the leaderboard in the database.
|
||||
*
|
||||
* @param context
|
||||
* @param event
|
||||
* @param competitor
|
||||
* @param leaderboard
|
||||
* @param context android context
|
||||
* @param event event to be stored
|
||||
* @param competitor competitor to be stored
|
||||
* @param leaderboard leaderboard to be stored
|
||||
* @return success or failure
|
||||
* @throws GeneralDatabaseHelperException
|
||||
* @throws OperationApplicationException
|
||||
* @throws RemoteException
|
||||
*/
|
||||
public void storeCheckinRow(Context context, EventInfo event, CompetitorInfo competitor,
|
||||
LeaderboardInfo leaderboard, CheckinUrlInfo checkinURL) throws GeneralDatabaseHelperException {
|
||||
@@ -213,7 +211,7 @@ public class DatabaseHelper {
|
||||
|
||||
// now insert event
|
||||
|
||||
ArrayList<ContentProviderOperation> opList = new ArrayList<ContentProviderOperation>();
|
||||
ArrayList<ContentProviderOperation> opList = new ArrayList<>();
|
||||
|
||||
ContentValues cev = new ContentValues();
|
||||
cev.put(Event.EVENT_ID, event.id);
|
||||
|
||||
+1
-2
@@ -74,8 +74,7 @@ public class HomeFragment extends AbstractHomeFragment implements LoaderCallback
|
||||
|
||||
private void checkinWithApiAndStartRegattaActivity(CheckinData checkinData) {
|
||||
try {
|
||||
if (!DatabaseHelper.getInstance().markLeaderboardCombnationAvailable(getActivity(),
|
||||
checkinData.checkinDigest)) {
|
||||
if (!DatabaseHelper.getInstance().markLeaderboardCombinationAvailable(getActivity(), checkinData.checkinDigest)) {
|
||||
DatabaseHelper.getInstance().deleteRegattaFromDatabase(getActivity(), checkinData.checkinDigest);
|
||||
}
|
||||
DatabaseHelper.getInstance().storeCheckinRow(getActivity(), checkinData.marks,
|
||||
|
||||
+6
-5
@@ -152,12 +152,13 @@ public class DatabaseHelper {
|
||||
/**
|
||||
* When checking in, store info on the event, the competitor and the leaderboard in the database.
|
||||
*
|
||||
* @param context
|
||||
* @param leaderboard
|
||||
* @param context android context
|
||||
* @param markList the list of marks to be stored
|
||||
* @param leaderboard leaderboard to be stored
|
||||
* @param checkinURL the checkin url to be stored
|
||||
* @param pings the list of mark pings to be stored
|
||||
* @return success or failure
|
||||
* @throws GeneralDatabaseHelperException
|
||||
* @throws OperationApplicationException
|
||||
* @throws RemoteException
|
||||
*/
|
||||
public void storeCheckinRow(Context context, List<MarkInfo> markList, LeaderboardInfo leaderboard,
|
||||
CheckinUrlInfo checkinURL, List<MarkPingInfo> pings) throws GeneralDatabaseHelperException {
|
||||
@@ -239,7 +240,7 @@ public class DatabaseHelper {
|
||||
|
||||
}
|
||||
|
||||
public boolean markLeaderboardCombnationAvailable(Context context, String checkinDigest) {
|
||||
public boolean markLeaderboardCombinationAvailable(Context context, String checkinDigest) {
|
||||
|
||||
Cursor lc = context.getContentResolver().query(Leaderboard.CONTENT_URI, null,
|
||||
Leaderboard.LEADERBOARD_CHECKIN_DIGEST + " = ?", new String[] { checkinDigest }, null);
|
||||
|
||||
Reference in New Issue
Block a user