~dav-surf/cineol/android

« back to all changes in this revision

Viewing changes to src/app/cineol/activities/PremiersActivity.java

  • Committer: dav.surf at gmail
  • Date: 2009-11-13 20:20:10 UTC
  • Revision ID: dav.surf@gmail.com-20091113202010-c8s7uh4ganj9vkru
android-trunk-130911

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        
81
81
        requestWindowFeature(Window.FEATURE_PROGRESS);
82
82
        setContentView(R.layout.premiers_list_view);
 
83
        this.setProgressBarIndeterminateVisibility(false);
83
84
                        
84
85
        premiersAdapter = new PremiersAdapter(this, R.layout.movie_row, new ArrayList<Movie>());
85
86
        setListAdapter(premiersAdapter);
123
124
                onPause = false;
124
125
                
125
126
                if (this.downloadingMovies) {
126
 
                        this.getParent().setProgressBarIndeterminateVisibility(false);
127
127
                this.getParent().setProgressBarVisibility(true);
 
128
                        this.getParent().setProgressBarIndeterminateVisibility(false);
128
129
                this.getParent().setProgress(1); // HACK para que se muestre la barra de progreso nada mas empezar la Activity.
129
130
                this.getParent().setProgressBarIndeterminate(true);
130
131
                this.getParent().setTitle("Descargando datos...");
189
190
                this.processingMovies = false;
190
191
                }
191
192
                else if (parser.parserType().equals(XMLParserMovie.PARSE_TYPE)) {
192
 
                        /*
193
 
                        Movie oldMovie = (Movie) this.getListAdapter().getItem(lastSelection);
194
 
                        Movie movie = ((XMLParserMovie) parser).getMovie();
195
 
 
196
 
                        if (oldMovie.getId() ==  movie.getId()) {
197
 
                                movie.setPosterThumbnail(oldMovie.getPosterThumbnail());
198
 
                                ((PremiersAdapter)this.getListAdapter()).remove(oldMovie);
199
 
                                ((PremiersAdapter)this.getListAdapter()).insert(movie, lastSelection);
200
 
                        }
201
 
                        */
202
 
                        
203
193
                        Movie movie = ((XMLParserMovie) parser).getMovie();
204
194
                        this.onUpdateMovie(movie);
205
195