Fixed #11
This commit is contained in:
parent
333b44cba3
commit
2f9af2e1f1
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user