mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 15:15:51 +03:00
wip
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
ac3a6d5421
commit
fc01e9738e
2 changed files with 1 additions and 18 deletions
|
@ -26,6 +26,7 @@ import com.nextcloud.client.account.CurrentAccountProvider
|
|||
import com.nextcloud.client.preferences.AppPreferences
|
||||
import com.owncloud.android.BuildConfig
|
||||
import com.owncloud.android.R
|
||||
import com.owncloud.android.authentication.AuthenticatorActivity
|
||||
import com.owncloud.android.features.FeatureItem
|
||||
import com.owncloud.android.ui.activity.PassCodeActivity
|
||||
|
||||
|
|
|
@ -86,7 +86,6 @@ import com.owncloud.android.ui.activities.ActivitiesActivity;
|
|||
import com.owncloud.android.ui.events.AccountRemovedEvent;
|
||||
import com.owncloud.android.ui.events.ChangeMenuEvent;
|
||||
import com.owncloud.android.ui.events.DummyDrawerEvent;
|
||||
import com.owncloud.android.ui.events.MenuItemClickEvent;
|
||||
import com.owncloud.android.ui.events.SearchEvent;
|
||||
import com.owncloud.android.ui.fragment.OCFileListFragment;
|
||||
import com.owncloud.android.ui.trashbin.TrashbinActivity;
|
||||
|
@ -385,23 +384,6 @@ public abstract class DrawerActivity extends ToolbarActivity
|
|||
DrawerMenuUtil.removeMenuItem(menu, R.id.nav_logout, !getResources().getBoolean(R.bool.show_drawer_logout));
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onMessageEvent(MenuItemClickEvent event) {
|
||||
unsetAllDrawerMenuItems();
|
||||
|
||||
switch (event.menuItem.getItemId()) {
|
||||
case R.id.nav_bar_files:
|
||||
showFiles(false);
|
||||
break;
|
||||
case R.id.nav_bar_settings:
|
||||
Intent settingsIntent = new Intent(getApplicationContext(), SettingsActivity.class);
|
||||
startActivity(settingsIntent);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onMessageEvent(DummyDrawerEvent event) {
|
||||
unsetAllDrawerMenuItems();
|
||||
|
|
Loading…
Reference in a new issue