mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03: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() {
|
private void resetView() {
|
||||||
resetViewModel();
|
resetViewModel();
|
||||||
try {
|
int id = Objects.requireNonNull(navController.getCurrentDestination()).getId();
|
||||||
int id = Objects.requireNonNull(navController.getCurrentDestination()).getId();
|
navController.popBackStack(id, true);
|
||||||
navController.popBackStack(id, true);
|
navController.navigate(id);
|
||||||
navController.navigate(id);
|
|
||||||
} catch(NullPointerException e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
quit();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getOpenSubsonicExtensions() {
|
private void getOpenSubsonicExtensions() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue