You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Remove superfluous null check
This commit is contained in:
@@ -65,10 +65,6 @@ public abstract class FullScreenGodotApp extends FragmentActivity implements God
|
|||||||
} else {
|
} else {
|
||||||
Log.v(TAG, "Creating new Godot fragment instance.");
|
Log.v(TAG, "Creating new Godot fragment instance.");
|
||||||
godotFragment = initGodotInstance();
|
godotFragment = initGodotInstance();
|
||||||
if (godotFragment == null) {
|
|
||||||
throw new IllegalStateException("Godot instance must be non-null.");
|
|
||||||
}
|
|
||||||
|
|
||||||
getSupportFragmentManager().beginTransaction().replace(R.id.godot_fragment_container, godotFragment).setPrimaryNavigationFragment(godotFragment).commitNowAllowingStateLoss();
|
getSupportFragmentManager().beginTransaction().replace(R.id.godot_fragment_container, godotFragment).setPrimaryNavigationFragment(godotFragment).commitNowAllowingStateLoss();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user