Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitsaibot authored and Gitsaibot committed May 11, 2023
1 parent 9b0dbf5 commit 06f6ec0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/net/gitsaibot/af/AfProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -1277,7 +1277,7 @@ public int bulkInsert(@NonNull Uri uri, @NonNull ContentValues[] values) {
}
break;
default:
throw new UnsupportedOperationException("AixProvider.bulkInsert() Unsupported URI: " + uri);
throw new UnsupportedOperationException("AfProvider.bulkInsert() Unsupported URI: " + uri);
}

return numInserted;
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/net/gitsaibot/af/ColorView.java
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ public void setColor(int color) {
invalidate();
} else if (mMode == MODE_ALPHA) {
mShader = buildShader(
mMode == MODE_ALPHA ? buildAlphaColorArray(mColor) : HUE_COLORS);
buildAlphaColorArray(mColor));
mColorAreaPaint.setShader(mShader);
invalidate();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ public void update(AfLocationInfo afLocationInfo, long currentUtcTime)
case XmlPullParser.END_TAG:
if (parser.getName().equals("time") && contentValues != null)
{
if (currentList != null && contentValues != null) {
currentList.add(contentValues);
}
currentList.add(contentValues);
}
break;
case XmlPullParser.START_TAG:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ public class AfDetailedWidget {
private final Context mContext;

private final AfLocationInfo mAfLocationInfo;
private final AfWidgetInfo mAfWidgetInfo;
private final AfWidgetSettings mWidgetSettings;

/* Common Properties */
Expand Down Expand Up @@ -142,7 +141,6 @@ private AfDetailedWidget(final Context context, AfWidgetInfo widgetInfo, AfLocat
mNumHours = 24;
mNumWeatherDataBufferHours = 6;

mAfWidgetInfo = widgetInfo;
mAfLocationInfo = locationInfo;

mWidgetSettings = widgetInfo.getWidgetSettings();
Expand Down Expand Up @@ -1453,7 +1451,6 @@ private void setupEpochAndTimes() {

// Update timeFrom and timeTo to correct values given the epoch
calendar.setTimeInMillis(epoch);
//calendar.setTimeInMillis(timeTemp);
mTimeFrom = calendar.getTimeInMillis();
calendar.add(Calendar.HOUR_OF_DAY, mNumHours);
mTimeTo = calendar.getTimeInMillis();
Expand Down

0 comments on commit 06f6ec0

Please sign in to comment.