Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2019-07-23 07:32:11 +02:00
parent ac3a6d5421
commit fc01e9738e
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 1 additions and 18 deletions

View file

@ -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

View file

@ -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();