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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user