コード例 #1
0
 protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
 {
     base.OnActivityResult(requestCode, resultCode, data);
     try
     {
         if (resultCode == Result.Ok)
         {
             ExposureNotification.OnActivityResult(requestCode, resultCode, data);
         }
     }
     finally
     {
         _permissionUtils.OnActivityResult(requestCode, resultCode, data);
         UpdateUI();
     }
 }
コード例 #2
0
 protected override void OnActivityResult(int requestCode, Result resultCode, Intent data)
 {
     base.OnActivityResult(requestCode, resultCode, data);
     try
     {
         if (resultCode == Result.Ok)
         {
             ExposureNotification.OnActivityResult(requestCode, resultCode, data);
         }
     }
     catch (Exception e)
     {
         _ = e.HandleExposureNotificationException(nameof(InfectionStatusActivity), nameof(OnActivityResult));
     }
     finally
     {
         _permissionUtils.OnActivityResult(requestCode, resultCode, data);
         UpdateUI();
     }
 }