]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Removed old menu.
authorThad Hughes <thadh@google.com>
Thu, 26 Dec 2013 19:52:02 +0000 (11:52 -0800)
committerThad Hughes <thadh@google.com>
Thu, 26 Dec 2013 19:52:02 +0000 (11:52 -0800)
res/menu/dictionary_manager_options_menu.xml [deleted file]
src/com/hughes/android/dictionary/DictionaryManagerActivity.java

diff --git a/res/menu/dictionary_manager_options_menu.xml b/res/menu/dictionary_manager_options_menu.xml
deleted file mode 100644 (file)
index 846f072..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
-    
-    <!-- 
-    <item android:id="@+id/filterText"
-          android:title="@string/managerFilterText"
-          android:icon="@drawable/abs__ic_search"
-          android:showAsAction="always"
-          android:actionViewClass="com.actionbarsherlock.widget.SearchView" />
-         -->
-</menu>
\ No newline at end of file
index 36eec144a17e00bdccd1b2758d3d50f9616adadf..85e13738392136708f6ec2bdf688ba147768f065 100644 (file)
@@ -348,24 +348,6 @@ public class DictionaryManagerActivity extends SherlockListActivity {
 
     @Override
     public boolean onCreateOptionsMenu(final Menu menu) {
-//        MenuInflater inflater = getSupportMenuInflater();
-//        inflater.inflate(R.menu.dictionary_manager_options_menu, menu);
-//        
-//        filterSearchView = (SearchView) menu.findItem(R.id.filterText).getActionView();
-//        filterSearchView.setOnQueryTextListener(new OnQueryTextListener() {
-//            @Override
-//            public boolean onQueryTextSubmit(String query) {
-//                return true;
-//            }
-//            
-//            @Override
-//            public boolean onQueryTextChange(String filterText) {
-//                setListAdapater();
-//                return true;
-//            }
-//        });
-//        filterSearchView.setIconifiedByDefault(false);
-
         application.onCreateGlobalOptionsMenu(this, menu);
         return true;
     }
@@ -420,24 +402,6 @@ public class DictionaryManagerActivity extends SherlockListActivity {
         prefs.commit();
     }
 
-//    @Override
-//    private void onClick(int index) {
-//        final DictionaryInfo dictionaryInfo = adapter.getItem(index);
-//        final DictionaryInfo downloadable =
-//                application.getDownloadable(dictionaryInfo.uncompressedFilename);
-//        if (!application.isDictionaryOnDevice(dictionaryInfo.uncompressedFilename)
-//                && downloadable != null) {
-//            final Intent intent = getDownloadIntent(downloadable);
-//            startActivity(intent);
-//        } else {
-//            final Intent intent =
-//                    DictionaryActivity.getLaunchIntent(
-//                            application.getPath(dictionaryInfo.uncompressedFilename),
-//                            0, "");
-//            startActivity(intent);
-//        }
-//    }    
-    
     class MyListAdapter extends BaseAdapter {
 
         List<DictionaryInfo> dictionariesOnDevice;