diff --git a/OsmAnd/AndroidManifest-freehuawei.xml b/OsmAnd/AndroidManifest-freehuawei.xml new file mode 100644 index 0000000000..9fe9a01ccf --- /dev/null +++ b/OsmAnd/AndroidManifest-freehuawei.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index 95424a01d6..2841dfcff3 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -189,6 +189,10 @@ android { dimension "version" applicationId "net.osmand.plus.huawei" } + freehuawei { + dimension "version" + applicationId "net.osmand.huawei" + } // CoreVersion legacy { diff --git a/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java b/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java index 0baafab662..cc1867fded 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/DiscountHelper.java @@ -80,7 +80,7 @@ public class DiscountHelper { public static void checkAndDisplay(final MapActivity mapActivity) { OsmandApplication app = mapActivity.getMyApplication(); OsmandSettings settings = app.getSettings(); - if (settings.DO_NOT_SHOW_STARTUP_MESSAGES.get() || !settings.INAPPS_READ.get()) { + if (settings.DO_NOT_SHOW_STARTUP_MESSAGES.get() || !settings.INAPPS_READ.get() || Version.isHuawei(app)) { return; } if (mBannerVisible) {