Commit d53fe7da authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Remove old action button for custom dir

parent 4212b020
......@@ -9,12 +9,6 @@
android:nextFocusDown="@+id/ml_menu_search"
android:visible="false"
vlc:showAsAction="ifRoom" />
<item
android:id="@+id/ml_menu_add_dir"
android:icon="@drawable/ic_add_white"
android:title="@string/add_custom_path"
android:visible="false"
vlc:showAsAction="always" />
<item
android:id="@+id/ml_menu_clean"
android:icon="@drawable/ic_trash_normal_w"
......
......@@ -319,7 +319,7 @@ public class MainActivity extends AudioPlayerContainerActivity implements OnItem
if (mCurrentFragment.equals(SidebarEntry.ID_NETWORK) || mCurrentFragment.equals(SidebarEntry.ID_DIRECTORIES)){
BaseBrowserFragment browserFragment = (BaseBrowserFragment) getSupportFragmentManager()
.findFragmentById(R.id.fragment_placeholder);
if (browserFragment !=null && !browserFragment.isRootDirectory()) {
if (browserFragment != null) {
browserFragment.goBack();
return;
}
......@@ -457,11 +457,6 @@ public class MainActivity extends AudioPlayerContainerActivity implements OnItem
menu.findItem(R.id.ml_menu_clean).setVisible(!((MRLPanelFragment) current).isEmpty());
boolean showLast = current instanceof AudioBrowserFragment || (current instanceof VideoGridFragment && mSettings.getString(PreferencesActivity.VIDEO_LAST, null) != null);
menu.findItem(R.id.ml_menu_last_playlist).setVisible(showLast);
if (current instanceof StorageBrowserFragment && ((StorageBrowserFragment) current).isRootDirectory())
menu.findItem(R.id.ml_menu_add_dir).setVisible(true);
else
menu.findItem(R.id.ml_menu_add_dir).setVisible(false);
return true;
}
......@@ -533,10 +528,6 @@ public class MainActivity extends AudioPlayerContainerActivity implements OnItem
((NetworkBrowserFragment)current).toggleFavorite();
item.setIcon(R.drawable.ic_menu_bookmark_w);
break;
case R.id.ml_menu_add_dir:
if (current != null && current instanceof StorageBrowserFragment)
((StorageBrowserFragment) current).showAddDirectoryDialog();
break;
}
mDrawerLayout.closeDrawer(mListView);
return super.onOptionsItemSelected(item);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment