Fix inapp texts
This commit is contained in:
parent
c4df9e8d3c
commit
410144553d
3 changed files with 8 additions and 0 deletions
|
@ -11,6 +11,8 @@
|
|||
Thx - Hardy
|
||||
|
||||
-->
|
||||
<string name="osm_live_payment_subscription_management_hw">Payment will be charged to your AppGallery account at the confirmation of purchase.\n\nSubscription automatically renews unless it is canceled before the renewal date. Your account will be charged for renewal period(month/three month/year) only on the renewal date.\n\nYou can manage and cancel your subscriptions by going to your AppGallery settings.</string>
|
||||
<string name="osm_live_payment_desc_hw">Subscription charged per selected period. Cancel it on AppGallery at any time.</string>
|
||||
<string name="contour_lines_thanks">Thank you for purchasing \'Contour lines\'</string>
|
||||
<string name="start_finish_icons">Start/finish icons</string>
|
||||
<string name="sort_name_ascending">Name: A – Z</string>
|
||||
|
|
|
@ -215,6 +215,9 @@ public abstract class ChoosePlanDialogFragment extends BaseOsmAndDialogFragment
|
|||
if (!TextUtils.isEmpty(getInfoDescription())) {
|
||||
infoDescription.setText(getInfoDescription());
|
||||
}
|
||||
TextViewEx planInfoDescription = (TextViewEx) view.findViewById(R.id.plan_info_description);
|
||||
planInfoDescription.setText(Version.isHuawei(app)
|
||||
? R.string.osm_live_payment_subscription_management_hw : R.string.osm_live_payment_subscription_management);
|
||||
ViewGroup osmLiveCard = buildOsmLiveCard(ctx, cardsContainer);
|
||||
if (osmLiveCard != null) {
|
||||
cardsContainer.addView(osmLiveCard);
|
||||
|
|
|
@ -23,6 +23,7 @@ import androidx.fragment.app.FragmentManager;
|
|||
|
||||
import net.osmand.PlatformUtil;
|
||||
import net.osmand.plus.OsmandApplication;
|
||||
import net.osmand.plus.Version;
|
||||
import net.osmand.plus.settings.backend.OsmandSettings;
|
||||
import net.osmand.plus.settings.backend.OsmandSettings.OsmandPreference;
|
||||
import net.osmand.plus.R;
|
||||
|
@ -110,6 +111,8 @@ public class OsmLiveCancelledDialog extends BaseOsmAndDialogFragment implements
|
|||
descr.append("\n").append("— ").append(feature.toHumanString(ctx));
|
||||
}
|
||||
infoDescr.setText(descr);
|
||||
TextViewEx inappDescr = (TextViewEx) view.findViewById(R.id.inapp_descr);
|
||||
inappDescr.setText(Version.isHuawei(app) ? R.string.osm_live_payment_desc_hw : R.string.osm_live_payment_desc);
|
||||
|
||||
osmLiveButton = view.findViewById(R.id.card_button);
|
||||
|
||||
|
|
Loading…
Reference in a new issue