Update CREATOR modifiers and return types

pull/848/head
Alex Baker 5 years ago
parent c959049848
commit d44355927e

@ -1,6 +1,7 @@
package com.todoroo.astrid.api; package com.todoroo.astrid.api;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import com.todoroo.andlib.sql.Criterion; import com.todoroo.andlib.sql.Criterion;
import com.todoroo.andlib.sql.Field; import com.todoroo.andlib.sql.Field;
@ -17,8 +18,8 @@ import org.tasks.data.CaldavTask;
public class CaldavFilter extends Filter { public class CaldavFilter extends Filter {
/** Parcelable Creator Object */ /** Parcelable Creator Object */
public static final Creator<CaldavFilter> CREATOR = public static final Parcelable.Creator<CaldavFilter> CREATOR =
new Creator<CaldavFilter>() { new Parcelable.Creator<CaldavFilter>() {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override

@ -100,8 +100,8 @@ public class Task implements Parcelable {
/** reminder mode five times (exclusive with non-stop) */ /** reminder mode five times (exclusive with non-stop) */
public static final int NOTIFY_MODE_FIVE = 1 << 4; public static final int NOTIFY_MODE_FIVE = 1 << 4;
public static final Creator<Task> CREATOR = public static final Parcelable.Creator<Task> CREATOR =
new Creator<Task>() { new Parcelable.Creator<Task>() {
@Override @Override
public Task createFromParcel(Parcel source) { public Task createFromParcel(Parcel source) {
return new Task(source); return new Task(source);

@ -13,7 +13,7 @@ import org.tasks.security.Encryption;
@Entity(tableName = "caldav_accounts") @Entity(tableName = "caldav_accounts")
public class CaldavAccount implements Parcelable { public class CaldavAccount implements Parcelable {
public static Parcelable.Creator<CaldavAccount> CREATOR = public static final Parcelable.Creator<CaldavAccount> CREATOR =
new Parcelable.Creator<CaldavAccount>() { new Parcelable.Creator<CaldavAccount>() {
@Override @Override

@ -13,7 +13,7 @@ import org.tasks.themes.CustomIcons;
@Entity(tableName = "caldav_lists") @Entity(tableName = "caldav_lists")
public final class CaldavCalendar implements Parcelable { public final class CaldavCalendar implements Parcelable {
public static Parcelable.Creator<CaldavCalendar> CREATOR = public static final Parcelable.Creator<CaldavCalendar> CREATOR =
new Parcelable.Creator<CaldavCalendar>() { new Parcelable.Creator<CaldavCalendar>() {
@Override @Override
public CaldavCalendar createFromParcel(Parcel source) { public CaldavCalendar createFromParcel(Parcel source) {

@ -9,8 +9,8 @@ import androidx.room.PrimaryKey;
@Entity(tableName = "google_task_accounts") @Entity(tableName = "google_task_accounts")
public class GoogleTaskAccount implements Parcelable { public class GoogleTaskAccount implements Parcelable {
public static final Creator<GoogleTaskAccount> CREATOR = public static final Parcelable.Creator<GoogleTaskAccount> CREATOR =
new Creator<GoogleTaskAccount>() { new Parcelable.Creator<GoogleTaskAccount>() {
@Override @Override
public GoogleTaskAccount createFromParcel(Parcel source) { public GoogleTaskAccount createFromParcel(Parcel source) {
return new GoogleTaskAccount(source); return new GoogleTaskAccount(source);

@ -11,8 +11,8 @@ import org.tasks.themes.CustomIcons;
@Entity(tableName = "google_task_lists") @Entity(tableName = "google_task_lists")
public class GoogleTaskList implements Parcelable { public class GoogleTaskList implements Parcelable {
public static Creator<GoogleTaskList> CREATOR = public static final Parcelable.Creator<GoogleTaskList> CREATOR =
new Creator<GoogleTaskList>() { new Parcelable.Creator<GoogleTaskList>() {
@Override @Override
public GoogleTaskList createFromParcel(Parcel parcel) { public GoogleTaskList createFromParcel(Parcel parcel) {
return new GoogleTaskList(parcel); return new GoogleTaskList(parcel);

@ -8,8 +8,8 @@ import java.io.Serializable;
public class Location implements Serializable, Parcelable { public class Location implements Serializable, Parcelable {
public static final Creator<Location> CREATOR = public static final Parcelable.Creator<Location> CREATOR =
new Creator<Location>() { new Parcelable.Creator<Location>() {
@Override @Override
public Location createFromParcel(Parcel in) { public Location createFromParcel(Parcel in) {
return new Location(in); return new Location(in);

@ -27,8 +27,8 @@ public class Place implements Serializable, Parcelable {
public static final String TABLE_NAME = "places"; public static final String TABLE_NAME = "places";
public static final Table TABLE = new Table(TABLE_NAME); public static final Table TABLE = new Table(TABLE_NAME);
public static final Creator<Place> CREATOR = public static final Parcelable.Creator<Place> CREATOR =
new Creator<Place>() { new Parcelable.Creator<Place>() {
@Override @Override
public Place createFromParcel(Parcel source) { public Place createFromParcel(Parcel source) {
return new Place(source); return new Place(source);

@ -14,8 +14,8 @@ import org.tasks.themes.CustomIcons;
@Entity(tableName = "tagdata") @Entity(tableName = "tagdata")
public final class TagData implements Parcelable { public final class TagData implements Parcelable {
public static final Creator<TagData> CREATOR = public static final Parcelable.Creator<TagData> CREATOR =
new Creator<TagData>() { new Parcelable.Creator<TagData>() {
@Override @Override
public TagData createFromParcel(Parcel source) { public TagData createFromParcel(Parcel source) {
return new TagData(source); return new TagData(source);

@ -18,8 +18,8 @@ import timber.log.Timber;
@Entity(tableName = "userActivity") @Entity(tableName = "userActivity")
public class UserActivity implements Parcelable { public class UserActivity implements Parcelable {
public static final Creator<UserActivity> CREATOR = public static final Parcelable.Creator<UserActivity> CREATOR =
new Creator<UserActivity>() { new Parcelable.Creator<UserActivity>() {
@Override @Override
public UserActivity createFromParcel(Parcel source) { public UserActivity createFromParcel(Parcel source) {
return new UserActivity(source); return new UserActivity(source);

@ -5,8 +5,8 @@ import android.os.Parcelable;
public class MapPosition implements Parcelable { public class MapPosition implements Parcelable {
public static final Creator<MapPosition> CREATOR = public static final Parcelable.Creator<MapPosition> CREATOR =
new Creator<MapPosition>() { new Parcelable.Creator<MapPosition>() {
@Override @Override
public MapPosition createFromParcel(Parcel in) { public MapPosition createFromParcel(Parcel in) {
return new MapPosition(in); return new MapPosition(in);

@ -2,6 +2,7 @@ package org.tasks.themes;
import android.content.res.Resources; import android.content.res.Resources;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable;
import org.tasks.R; import org.tasks.R;
import org.tasks.dialogs.ColorPickerDialog; import org.tasks.dialogs.ColorPickerDialog;
@ -27,8 +28,8 @@ public class ThemeAccent implements ColorPickerDialog.Pickable {
R.style.OrangeAccent, R.style.OrangeAccent,
R.style.DeepOrangeAccent R.style.DeepOrangeAccent
}; };
public static Creator<ThemeAccent> CREATOR = public static final Parcelable.Creator<ThemeAccent> CREATOR =
new Creator<ThemeAccent>() { new Parcelable.Creator<ThemeAccent>() {
@Override @Override
public ThemeAccent createFromParcel(Parcel source) { public ThemeAccent createFromParcel(Parcel source) {
return new ThemeAccent(source); return new ThemeAccent(source);

@ -4,6 +4,7 @@ import android.app.Activity;
import android.content.Context; import android.content.Context;
import android.content.res.Configuration; import android.content.res.Configuration;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable;
import android.view.ContextThemeWrapper; import android.view.ContextThemeWrapper;
import androidx.appcompat.app.AppCompatDelegate; import androidx.appcompat.app.AppCompatDelegate;
import org.tasks.R; import org.tasks.R;
@ -15,8 +16,8 @@ public class ThemeBase implements ColorPickerDialog.Pickable {
new int[] { new int[] {
R.style.Tasks, R.style.ThemeBlack, R.style.Tasks, R.style.Wallpaper, R.style.Tasks R.style.Tasks, R.style.ThemeBlack, R.style.Tasks, R.style.Wallpaper, R.style.Tasks
}; };
public static Creator<ThemeBase> CREATOR = public static final Parcelable.Creator<ThemeBase> CREATOR =
new Creator<ThemeBase>() { new Parcelable.Creator<ThemeBase>() {
@Override @Override
public ThemeBase createFromParcel(Parcel source) { public ThemeBase createFromParcel(Parcel source) {
return new ThemeBase(source); return new ThemeBase(source);

@ -9,6 +9,7 @@ import android.app.ActivityManager;
import android.content.res.Resources; import android.content.res.Resources;
import android.os.Build.VERSION_CODES; import android.os.Build.VERSION_CODES;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable;
import android.view.View; import android.view.View;
import androidx.annotation.RequiresApi; import androidx.annotation.RequiresApi;
import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.Toolbar;
@ -92,8 +93,8 @@ public class ThemeColor implements ColorPickerDialog.Pickable {
R.style.White R.style.White
}; };
public static Creator<ThemeColor> CREATOR = public static final Parcelable.Creator<ThemeColor> CREATOR =
new Creator<ThemeColor>() { new Parcelable.Creator<ThemeColor>() {
@Override @Override
public ThemeColor createFromParcel(Parcel source) { public ThemeColor createFromParcel(Parcel source) {
return new ThemeColor(source); return new ThemeColor(source);

@ -1,6 +1,7 @@
package org.tasks.themes; package org.tasks.themes;
import android.os.Parcel; import android.os.Parcel;
import android.os.Parcelable;
import org.tasks.R; import org.tasks.R;
import org.tasks.dialogs.ColorPickerDialog; import org.tasks.dialogs.ColorPickerDialog;
@ -8,8 +9,8 @@ public class WidgetTheme implements ColorPickerDialog.Pickable {
static final int[] BACKGROUNDS = static final int[] BACKGROUNDS =
new int[] {R.color.grey_50, R.color.widget_background_black, R.color.md_background_dark}; new int[] {R.color.grey_50, R.color.widget_background_black, R.color.md_background_dark};
public static Creator<WidgetTheme> CREATOR = public static final Parcelable.Creator<WidgetTheme> CREATOR =
new Creator<WidgetTheme>() { new Parcelable.Creator<WidgetTheme>() {
@Override @Override
public WidgetTheme createFromParcel(Parcel source) { public WidgetTheme createFromParcel(Parcel source) {
return new WidgetTheme(source); return new WidgetTheme(source);

Loading…
Cancel
Save