-    
-//    public void restart(){
-//        Intent i = new Intent(this, FileDisplayActivity.class);
-//        i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
-//        startActivity(i);
-//    }
-
-//    public void closeDrawer() {
-//        mDrawerLayout.closeDrawers();
-//    }
-
-//    private class DrawerItemClickListener implements ListView.OnItemClickListener {
-//        @Override
-//        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
-//            if (mShowAccounts && position > 0){
-//                position = position - 1;
-//            }
-//            switch (position){
-//                case 0: // Accounts
-//                    mShowAccounts = !mShowAccounts;
-//                    mNavigationDrawerAdapter.setShowAccounts(mShowAccounts);
-//                    mNavigationDrawerAdapter.notifyDataSetChanged();
-//                    break;
-//
-//                case 1: // All Files
-//                    // TODO Enable when "On Device" is recovered ?
-//                    //MainApp.showOnlyFilesOnDevice(false);
-//                    mDrawerLayout.closeDrawers();
-//                    break;
-//
-//                // TODO Enable when "On Device" is recovered ?
-////                case 2:
-////                    MainApp.showOnlyFilesOnDevice(true);
-////                    mDrawerLayout.closeDrawers();
-////                    break;
-//
-//                case 2: // Settings
-//                    Intent settingsIntent = new Intent(getApplicationContext(),
-//                            Preferences.class);
-//                    startActivity(settingsIntent);
-//                    break;
-//
-//                case 3: // Logs
-//                    Intent loggerIntent = new Intent(getApplicationContext(),
-//                            LogHistoryActivity.class);
-//                    startActivity(loggerIntent);
-//                    break;
-//            }
-//        }
-//    }