فهرست منبع

Remove deprecated code after last update

Juan Carlos González Cabrero 9 سال پیش
والد
کامیت
9af6bf238c
2فایلهای تغییر یافته به همراه0 افزوده شده و 99 حذف شده
  1. 0 52
      res/menu/multiple_file_actions_menu.xml
  2. 0 47
      src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

+ 0 - 52
res/menu/multiple_file_actions_menu.xml

@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?><!--
-  ownCloud Android client application
-
-  Copyright (C) 2015 ownCloud Inc.
-
-  This program is free software: you can redistribute it and/or modify
-  it under the terms of the GNU General Public License version 2,
-  as published by the Free Software Foundation.
-
-  This program is distributed in the hope that it will be useful,
-  but WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-  GNU General Public License for more details.
-
-  You should have received a copy of the GNU General Public License
-  along with this program.  If not, see <http://www.gnu.org/licenses/>.
--->
-<menu xmlns:android="http://schemas.android.com/apk/res/android">
-    <item
-        android:id="@+id/action_download_file"
-        android:title="@string/filedetails_download"
-        android:icon="@drawable/ic_action_download"
-        android:orderInCategory="1" />
-    <item
-        android:id="@+id/action_move"
-        android:title="@string/actionbar_move"
-        android:icon="@drawable/ic_export"
-        android:orderInCategory="1" />
-    <item
-        android:id="@+id/action_copy"
-        android:title="@android:string/copy"
-        android:icon="@drawable/ic_copy"
-        android:orderInCategory="1" />
-    <item
-        android:id="@+id/action_remove_file"
-        android:title="@string/common_remove"
-        android:icon="@drawable/ic_delete"
-        android:orderInCategory="1" />
-
-    <!-- Uncomment when favorite folders become available -->
-
-    <!--<item-->
-        <!--android:id="@+id/action_favorite_file"-->
-        <!--android:title="@string/favorite"-->
-        <!--android:icon="@android:drawable/ic_menu_set_as"-->
-        <!--android:orderInCategory="1" />-->
-    <!--<item-->
-        <!--android:id="@+id/action_unfavorite_file"-->
-        <!--android:title="@string/unfavorite"-->
-        <!--android:icon="@android:drawable/ic_menu_set_as"-->
-        <!--android:orderInCategory="1" />-->
-</menu>

+ 0 - 47
src/com/owncloud/android/ui/fragment/ExtendedListFragment.java

@@ -164,46 +164,6 @@ public class ExtendedListFragment extends Fragment
                              Bundle savedInstanceState) {
         Log_OC.d(TAG, "onCreateView");
 
-        // TODO Tobi remove
-//         AbsListView.MultiChoiceModeListener listener = new AbsListView.MultiChoiceModeListener() {
-//            @Override
-//            public void onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) {
-//                // Capture total checked items
-//                final int checkedCount = mListView.getCheckedItemCount();
-//                // Set the CAB title according to total checked items
-//                mode.setTitle(checkedCount + " Selected");
-//                // Calls toggleSelection method from ListViewAdapter Class
-//                 // mAdapter.toggleSelection(position);
-//
-//                if (checked){
-//                    mAdapter.setNewSelection(position,checked);
-//                } else {
-//                    mAdapter.removeSelection(position);
-//                }
-//            }
-//
-//            @Override
-//            public boolean onCreateActionMode(ActionMode mode, Menu menu) {
-//                mode.getMenuInflater().inflate(R.menu.context, menu);
-//                return true;
-//            }
-//
-//            @Override
-//            public boolean onPrepareActionMode(ActionMode mode, Menu menu) {
-//                return false;
-//            }
-//
-//            @Override
-//            public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
-//                return false;
-//            }
-//
-//            @Override
-//            public void onDestroyActionMode(ActionMode mode) {
-//                // mAdapter.removeSelection();
-//            }
-//        };
-
         View v = inflater.inflate(R.layout.list_fragment, null);
 
         mListView = (ExtendedListView)(v.findViewById(R.id.list_root));
@@ -462,13 +422,6 @@ public class ExtendedListFragment extends Fragment
         mGridView.setMultiChoiceModeListener(listener);
     }
 
-    protected void registerForContextMenu() {
-        registerForContextMenu(mListView);
-        registerForContextMenu(mGridView);
-        mListView.setOnCreateContextMenuListener(this);
-        mGridView.setOnCreateContextMenuListener(this);
-    }
-
     /**
      * TODO doc
      * To be called before setAdapter, or GridViewWithHeaderAndFooter will throw an exception