Search in sources :

Example 1 with FragmentModule

use of com.simplecity.amp_library.dagger.module.FragmentModule in project Shuttle by timusus.

the class AlbumArtistFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ShuttleApplication.getInstance().getAppComponent().plus(new FragmentModule(this)).inject(this);
    setHasOptionsMenu(true);
    adapter = new SectionedAdapter();
}
Also used : SectionedAdapter(com.simplecity.amp_library.ui.adapters.SectionedAdapter) FragmentModule(com.simplecity.amp_library.dagger.module.FragmentModule)

Example 2 with FragmentModule

use of com.simplecity.amp_library.dagger.module.FragmentModule in project Shuttle by timusus.

the class QueuePagerFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    viewModelAdapter = new ViewModelAdapter();
    ShuttleApplication.getInstance().getAppComponent().plus(new FragmentModule(this)).inject(this);
}
Also used : FragmentModule(com.simplecity.amp_library.dagger.module.FragmentModule) ViewModelAdapter(com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter)

Example 3 with FragmentModule

use of com.simplecity.amp_library.dagger.module.FragmentModule in project Shuttle by timusus.

the class AlbumFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ShuttleApplication.getInstance().getAppComponent().plus(new FragmentModule(this)).inject(this);
    setHasOptionsMenu(true);
    adapter = new SectionedAdapter();
}
Also used : SectionedAdapter(com.simplecity.amp_library.ui.adapters.SectionedAdapter) FragmentModule(com.simplecity.amp_library.dagger.module.FragmentModule)

Example 4 with FragmentModule

use of com.simplecity.amp_library.dagger.module.FragmentModule in project Shuttle by timusus.

the class QueueFragment method onCreate.

@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ShuttleApplication.getInstance().getAppComponent().plus(new FragmentModule(this)).inject(this);
    setHasOptionsMenu(true);
    adapter = new ViewModelAdapter();
}
Also used : FragmentModule(com.simplecity.amp_library.dagger.module.FragmentModule) ViewModelAdapter(com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter)

Example 5 with FragmentModule

use of com.simplecity.amp_library.dagger.module.FragmentModule in project Shuttle by timusus.

the class SuggestedFragment method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ShuttleApplication.getInstance().getAppComponent().plus(new FragmentModule(this)).inject(this);
    adapter = new ViewModelAdapter();
    mostPlayedRecyclerView = new HorizontalRecyclerView("SuggestedFragment - mostPlayed");
    favoriteRecyclerView = new HorizontalRecyclerView("SuggestedFragment - favorite");
}
Also used : FragmentModule(com.simplecity.amp_library.dagger.module.FragmentModule) ViewModelAdapter(com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter) HorizontalRecyclerView(com.simplecity.amp_library.ui.modelviews.HorizontalRecyclerView)

Aggregations

FragmentModule (com.simplecity.amp_library.dagger.module.FragmentModule)5 ViewModelAdapter (com.simplecityapps.recycler_adapter.adapter.ViewModelAdapter)3 SectionedAdapter (com.simplecity.amp_library.ui.adapters.SectionedAdapter)2 HorizontalRecyclerView (com.simplecity.amp_library.ui.modelviews.HorizontalRecyclerView)1