This commit is contained in:
Daniele Verducci (Slimpenguin) 2022-05-13 08:54:38 +02:00
parent 333b44cba3
commit 2f9af2e1f1

View File

@ -72,10 +72,14 @@ public class MainActivity extends AppCompatActivity {
return;
}
if (bundle != null)
navController.navigate(actionId, bundle);
else
navController.navigate(actionId);
try {
if (bundle != null)
navController.navigate(actionId, bundle);
else
navController.navigate(actionId);
} catch (IllegalArgumentException e) {
Log.e(TAG, "Unable to navigate to fragment: " + e.getMessage());
}
}
public boolean getRotationEnabledSetting() {