Remove duplicate Android orientation settings.
This commit is contained in:
parent
de4ae92287
commit
597d9409f3
2 changed files with 64 additions and 5 deletions
|
|
@ -29,7 +29,6 @@
|
|||
/*************************************************************************/
|
||||
|
||||
#include "export.h"
|
||||
#include "gradle_export_util.h"
|
||||
|
||||
#include "core/config/project_settings.h"
|
||||
#include "core/io/image_loader.h"
|
||||
|
|
@ -827,7 +826,7 @@ class EditorExportPlatformAndroid : public EditorExportPlatform {
|
|||
int version_code = p_preset->get("version/code");
|
||||
String package_name = p_preset->get("package/unique_name");
|
||||
|
||||
int orientation = p_preset->get("screen/orientation");
|
||||
const int screen_orientation = _get_android_orientation_value(_get_screen_orientation());
|
||||
|
||||
bool screen_support_small = p_preset->get("screen/support_small");
|
||||
bool screen_support_normal = p_preset->get("screen/support_normal");
|
||||
|
|
@ -937,7 +936,7 @@ class EditorExportPlatformAndroid : public EditorExportPlatform {
|
|||
}
|
||||
|
||||
if (tname == "activity" && attrname == "screenOrientation") {
|
||||
encode_uint32(orientation == 0 ? 0 : 1, &p_manifest.write[iofs + 16]);
|
||||
encode_uint32(screen_orientation, &p_manifest.write[iofs + 16]);
|
||||
}
|
||||
|
||||
if (tname == "supports-screens") {
|
||||
|
|
@ -1636,7 +1635,6 @@ public:
|
|||
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "package/name", PROPERTY_HINT_PLACEHOLDER_TEXT, "Game Name [default if blank]"), ""));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "package/signed"), true));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "screen/immersive_mode"), true));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "screen/orientation", PROPERTY_HINT_ENUM, "Landscape,Portrait"), 0));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "screen/support_small"), true));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "screen/support_normal"), true));
|
||||
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "screen/support_large"), true));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue