app/src/main/java/io/github/ilya_lebedev/popularmovies/sync/MovieFetchTask.java
/**
     * Select task to execute.
     *
     * @param context Used by tasks methods
     * @param action  Define which task to execute
     */
Select task to execute.
@param context Used by tasks methods
@param action  Define which task to execute
Select task to execute . @param context Used by tasks methods @param action Define which task to execute
public static void executeTask(Context context, String action) {
        if (ACTION_FETCH_NEXT_PAGE.equals(action)) {
            fetchNextPage(context);
        }
    }
public static void executeTask ( Context context , String action ) { if ( ACTION_FETCH_NEXT_PAGE . equals ( action ) ) { fetchNextPage ( context ) ; } }
Select task to execute.
Select task to execute .