Guest User

Untitled

a guest
Dec 13th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public class NewActivity extends RestListActivity {
  2.  
  3. ArrayList<ClsFilmGenres> genres;
  4. String genreCode = "-1";
  5.  
  6. @Override
  7. public void firstRequest() {
  8. genresSpinner.setVisibility(View.GONE);
  9. getBooksNovelty();
  10. }
  11.  
  12. @Override
  13. public void onRESTResult(int code, String result, String mode) {
  14. if (mode.equals("books/novelty")) {
  15. parseFilms(result);
  16. }
  17. }
  18.  
  19. @Override
  20. public void onGenreSelected(int pos) {
  21.  
  22. }
  23.  
  24. @Override
  25. public void onScrolling() {
  26. getBooksNovelty();
  27. }
  28.  
  29. public static Intent createIntent(Context context) {
  30. Intent i = new Intent(context, NewActivity.class);
  31. i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  32. return i;
  33. }
  34. }
Add Comment
Please, Sign In to add comment