protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.welcome_what_is_new);

            TextView title = FindViewById <TextView>(Resource.Id.welcome_what_is_new_title);

            title.Text = WELCOME_PAGE_WHATS_NEW_TITLE;
            title.SetAccessibilityDelegate(AccessibilityUtils.GetHeadingAccessibilityDelegate());

            SetBulletText(Resource.Id.bullet_one, WELCOME_PAGE_WHATS_NEW_BULLET_ONE);
            SetBulletText(Resource.Id.bullet_two, WELCOME_PAGE_WHATS_NEW_BULLET_TWO);

            Button   button = FindViewById <Button>(Resource.Id.ok_button);
            TextView footer = FindViewById <TextView>(Resource.Id.footer);

            button.Text = WELCOME_PAGE_WHATS_NEW_BUTTON;
            footer.Text = WELCOME_PAGE_WHATS_NEW_FOOTER;

            button.Click += new StressUtils.SingleClick((o, args) =>
            {
                OnboardingStatusHelper.Status = ConsentsHelper.GetStatusDependingOnRelease();
                NavigationHelper.GoToResultPageAndClearTop(this);
            }).Run;

            View rootView = Window.DecorView.RootView;

            rootView.LayoutDirection = LayoutUtils.GetLayoutDirection();
        }
 private void NextButtonPressed(object sender, EventArgs eventArgs)
 {
     if (IsChecked())
     {
         OnboardingStatusHelper.Status = ConsentsHelper.GetStatusDependingOnRelease();
         NavigationHelper.GoToResultPageAndClearTop(this);
     }
     else
     {
         SetConsentWarningShown(true);
     }
 }
 partial void NextBtn_TouchUpInside(UIButton sender)
 {
     SetWarningViewVisibility();
     if (_consentViewModel.ConsentIsGiven)
     {
         OnboardingStatusHelper.Status = ConsentsHelper.GetStatusDependingOnRelease();
         GoToResultPage();
     }
     else
     {
         UIAccessibility.PostNotification(UIAccessibilityPostNotification.ScreenChanged, WarningLbl);
     }
 }
예제 #4
0
 public static void GoToResultPageIfOnboarded(UIViewController parent)
 {
     ConsentsHelper.DoActionWhenOnboarded(() => GoToResultPage(parent, false));
 }
 private void NextButton_TouchUpInside(object sender, EventArgs e)
 {
     OnboardingStatusHelper.Status = ConsentsHelper.GetStatusDependingOnRelease();
     GoToInfectionStatusPage();
 }
예제 #6
0
 public static void GoToStartPageIfIsOnboarded(Activity parent)
 {
     ConsentsHelper.DoActionWhenOnboarded(() => GoToResultPageAndClearTop(parent));
 }