~vono22/narau/trunk

« back to all changes in this revision

Viewing changes to Narau/src/org/vono/narau/dictionary/DictionaryOfflineActivity.java

  • Committer: Yvon Tanguy
  • Date: 2012-12-13 16:03:49 UTC
  • Revision ID: vono22@yahoo.fr-20121213160349-twug68ji00bzsr9g
Polishing...

About:
- Change the Licence menu to About
- Add the About tab
- Add icon for about tab
- Update icon for licence and thanks

Download:
- Update layout for the first run message (normal size)

Dictionary:
- Add menu to select language/service (still accessible by a long click on the search button)

Main:
- show the first run screen, with the download database proposal, only on first run, not when the databases are missing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        private static final String AUTO = "auto";
55
55
 
56
56
        /**
57
 
         * Tag messages for buttonSearch to be able to do the search or stop the
58
 
         * loading thread.
 
57
         * Tag messages for buttonSearch to be able to do the search or stop the loading thread.
59
58
         */
60
59
        private static final String BUTTON_DO_SEARCH = "DS";
61
60
        private static final String BUTTON_STOP_LOADING = "SL";
303
302
                        Preferences.setBoolean(R.string.prefNameDictionaryWordMatch, wordMatch);
304
303
                        updateMenuItemWordMatch(item, wordMatch);
305
304
                        break;
 
305
                case R.id.menuDictionarySelectLang:
 
306
                        this.onLongClick(null);
 
307
                        break;
306
308
                default:
307
309
                        return super.onOptionsItemSelected(item);
308
310
                }
387
389
        /**
388
390
         * 
389
391
         * @param wait
390
 
         *            true if we wait the loading thread to end. false only if this
391
 
         *            activity is finishing.
 
392
         *            true if we wait the loading thread to end. false only if this activity is
 
393
         *            finishing.
392
394
         */
393
395
        private void stopDictionaryThread(boolean wait) {
394
396
 
432
434
 
433
435
                final DictionaryOfflineActivity activity;
434
436
                /**
435
 
                 * Boolean to discard dictionary results, when this activity is
436
 
                 * finishing.
 
437
                 * Boolean to discard dictionary results, when this activity is finishing.
437
438
                 */
438
439
                boolean finished;
439
440
                boolean firstMessage;