Skip to content

Commit

Permalink
Merge pull request #17591 from osmandapp/1822-cloud-auth_changes
Browse files Browse the repository at this point in the history
#1822: small ui changes
  • Loading branch information
Chumva authored Jul 11, 2023
2 parents 2413e23 + 7b022d1 commit 3691389
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c
}

private void setupToolbar(@NonNull View view) {
TextView title = view.findViewById(R.id.toolbar_title);
title.setText(R.string.backup_and_restore);

View subtitle = view.findViewById(R.id.toolbar_subtitle);
AndroidUiHelper.updateVisibility(subtitle, false);

Expand All @@ -81,19 +78,7 @@ private void setupToolbar(@NonNull View view) {
}

private void updateButtons() {
boolean subscribed = InAppPurchaseHelper.isOsmAndProAvailable(app);
if (subscribed) {
setupAuthorizeButton(signUpButton, DialogButtonType.PRIMARY, R.string.register_opr_create_new_account, true);
} else {
signUpButton.setButtonType(DialogButtonType.PRIMARY);
signUpButton.setTitleId(R.string.shared_string_get);
signUpButton.setOnClickListener(v -> {
FragmentActivity activity = getActivity();
if (activity != null) {
ChoosePlanFragment.showInstance(activity, OsmAndFeature.OSMAND_CLOUD);
}
});
}
setupAuthorizeButton(signUpButton, DialogButtonType.PRIMARY, R.string.register_opr_create_new_account, true);
setupAuthorizeButton(signInButton, DialogButtonType.SECONDARY, R.string.register_opr_have_account, false);
}

Expand Down

0 comments on commit 3691389

Please sign in to comment.