package net.somethingdreadful.MAL;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;

public class SearchSectionsPagerAdapter extends HomeSectionsPagerAdapter {

    public SearchSectionsPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int i) {
        Fragment fragment;
        Bundle args = new Bundle();

        fragment = new ItemGridFragment();
        switch (i) {
            case 0:
                args.putString("type", MALManager.TYPE_ANIME);
                break;
            case 1:
                args.putString("type", MALManager.TYPE_MANGA);
                break;
            default:
                args.putString("type", MALManager.TYPE_ANIME);
                break;
        }

        fragment.setArguments(args);
        return fragment;
    }


}
@@ -143,16 +143,62 @@
 nager;%0A%0A
+import net.somethingdreadful.MAL.api.MALApi;%0A%0A
 public c
@@ -566,38 +566,35 @@
         args.put
-String
+Int
 (%22type%22, MALMana
@@ -589,34 +589,40 @@
 pe%22, MAL
-Manager.TYPE_ANIME
+Api.ListType.ANIME.value
 );%0A     
@@ -675,38 +675,35 @@
         args.put
-String
+Int
 (%22type%22, MALMana
@@ -702,26 +702,32 @@
  MAL
-Manager.TYPE_MANGA
+Api.ListType.MANGA.value
 );%0A 
@@ -797,14 +797,11 @@
 .put
-String
+Int
 (%22ty
@@ -812,26 +812,32 @@
  MAL
-Manager.TYPE_ANIME
+Api.ListType.ANIME.value
 );%0A 

Fix type argument in SearchSectionsPagerAdapter