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

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

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

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

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

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

@ -8,8 +8,8 @@ import java.io.Serializable;
public class Location implements Serializable, Parcelable {
public static final Creator<Location> CREATOR =
new Creator<Location>() {
public static final Parcelable.Creator<Location> CREATOR =
new Parcelable.Creator<Location>() {
@Override
public Location createFromParcel(Parcel 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 Table TABLE = new Table(TABLE_NAME);
public static final Creator<Place> CREATOR =
new Creator<Place>() {
public static final Parcelable.Creator<Place> CREATOR =
new Parcelable.Creator<Place>() {
@Override
public Place createFromParcel(Parcel source) {
return new Place(source);

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

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

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

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

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

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

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

Loading…
Cancel
Save