Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto navigate to status #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Auto navigate to status #46

wants to merge 1 commit into from

Conversation

heetel
Copy link
Collaborator

@heetel heetel commented Nov 13, 2019

No description provided.

@heetel heetel added the enhancement New feature or request label Nov 13, 2019
@heetel heetel added this to the Design 2.0 milestone Nov 13, 2019
Copy link
Contributor

@maxdobler maxdobler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hab paar kleine anmerkungen

Comment on lines +119 to +121
if (calendarId == -1L) {
calendarId = preferencesService.getCalendarIdOfLastSelectedRoom();
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicated code from line 83

@@ -191,7 +233,7 @@ public void onBackPressed() {
switch (navigationController.getSelectedFragment()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe delegate this logik to the navigation controller

Long defaultRoom = preferencesService.getCalendarIdOfDefaultRoom();

// if no default room set, use last selected room
if (defaultRoom == -1L) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1 finde ich nicht so gut, könnten wir da nicht was anderes nehemen? Enum z.B.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants