mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
fix: Get rid of the try-catch since it's considered bad practice in Java
This matches the treatment done at other places in the code, so it should be fine.
This commit is contained in:
parent
a83495f353
commit
134a1605ad
1 changed files with 3 additions and 8 deletions
|
|
@ -381,14 +381,9 @@ public class MainActivity extends BaseActivity {
|
|||
|
||||
private void resetView() {
|
||||
resetViewModel();
|
||||
try {
|
||||
int id = Objects.requireNonNull(navController.getCurrentDestination()).getId();
|
||||
navController.popBackStack(id, true);
|
||||
navController.navigate(id);
|
||||
} catch(NullPointerException e) {
|
||||
e.printStackTrace();
|
||||
quit();
|
||||
}
|
||||
int id = Objects.requireNonNull(navController.getCurrentDestination()).getId();
|
||||
navController.popBackStack(id, true);
|
||||
navController.navigate(id);
|
||||
}
|
||||
|
||||
private void getOpenSubsonicExtensions() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue