Android: set default style extraction to minimal

The default value in the default manifest has been for few
releases, set as minimal, and since Widgets Android style
is not fully supported anymore, we can set this to default
to minimal under the hood as well to avoid needing to always
explicitly needing to set it to minimal.

Change-Id: Id0b2134c572694be1e190347ff75f51ade65f0c4
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
Reviewed-by: Rami Potinkara <rami.potinkara@qt.io>
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
(cherry picked from commit ee4f91fa50fa470b4891318750bd7aad5e508124)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Assam Boudjelthia 2023-12-16 13:50:51 +02:00 committed by Qt Cherry-pick Bot
parent 76aab86de2
commit d66874f13c
4 changed files with 5 additions and 14 deletions

View File

@ -154,11 +154,14 @@ class ExtractStyle {
String dataDir = activity.getApplicationInfo().dataDir;
m_stylePath = dataDir + "/qt-reserved-files/android-style/" + dpi + "/";
if (extractOption.isEmpty())
extractOption = "minimal";
if (!extractOption.equals("default") && !extractOption.equals("full")
&& !extractOption.equals("minimal") && !extractOption.equals("none")) {
Log.e(QtTAG, "Invalid extract_android_style option \"" + extractOption
+ "\", defaulting to \"default\"");
extractOption = "default";
+ "\", defaulting to \"minimal\"");
extractOption = "minimal";
}
// QTBUG-69810: The extraction code will trigger compatibility warnings on Android

View File

@ -36,10 +36,6 @@
<meta-data
android:name="android.app.arguments"
android:value="-- %%INSERT_APP_ARGUMENTS%% --" />
<meta-data
android:name="android.app.extract_android_style"
android:value="minimal" />
</activity>
<provider

View File

@ -43,10 +43,6 @@
<meta-data
android:name="android.app.lib_name"
android:value="-- %%INSERT_APP_LIB_NAME%% --" />
<meta-data
android:name="android.app.extract_android_style"
android:value="minimal" />
</activity>
</application>
</manifest>

View File

@ -43,10 +43,6 @@
<meta-data
android:name="android.app.lib_name"
android:value="-- %%INSERT_APP_LIB_NAME%% --" />
<meta-data
android:name="android.app.extract_android_style"
android:value="minimal" />
</activity>
</application>
</manifest>