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; return;
} }
if (bundle != null) try {
navController.navigate(actionId, bundle); if (bundle != null)
else navController.navigate(actionId, bundle);
navController.navigate(actionId); else
navController.navigate(actionId);
} catch (IllegalArgumentException e) {
Log.e(TAG, "Unable to navigate to fragment: " + e.getMessage());
}
} }
public boolean getRotationEnabledSetting() { public boolean getRotationEnabledSetting() {