Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Androidでホーム画面が開かない #908

Closed
cocoa-dev005 opened this issue Mar 10, 2022 · 0 comments · Fixed by #909
Closed

Androidでホーム画面が開かない #908

cocoa-dev005 opened this issue Mar 10, 2022 · 0 comments · Fixed by #909
Assignees

Comments

@cocoa-dev005
Copy link
Contributor

cocoa-dev005 commented Mar 10, 2022

不具合の内容 / Describe the bug

タイトルの通り。iOS では問題ない。

原因は #898 のデグレ。
Android だと ContentPageOnAppearing()SetSemanticFocus(this) を呼び出すと、 NullReferenceException が発生する。

再現手順 / Steps to reproduce

  1. アプリを起動する
  2. ホーム画面を開く前に画面が固まる

期待される挙動 / Expected behavior

ホーム画面が表示される。

スクリーンショット / Screenshots

スクリーンショット 2022-03-10 17 54 19

System.NullReferenceException: Can't access view
  at Xamarin.CommunityToolkit.Extensions.SemanticExtensions.PlatformSetSemanticFocus (Xamarin.Forms.VisualElement element) [0x00006] in <389767a4cf3749e5869ae1140d863911>:0
  at Xamarin.CommunityToolkit.Extensions.SemanticExtensions.SetSemanticFocus (Xamarin.Forms.VisualElement element) [0x00000] in <389767a4cf3749e5869ae1140d863911>:0
  at Covid19Radar.Views.HomePage.OnAppearing () [0x00008] in /Users/{user name}/Documents/Repos/GitHub/cocoa-mhlw/cocoa/Covid19Radar/Covid19Radar/Views/HomePage/HomePage.xaml.cs:49
  at Xamarin.Forms.Page.SendAppearing () [0x00045] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:452
  at Xamarin.Forms.Page.SendAppearing () [0x00068] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:456
  at Xamarin.Forms.Platform.Android.FlyoutPageRenderer.FlyoutPageAppearing (System.Object sender, System.EventArgs e) [0x00011] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FlyoutPageRenderer.cs:382
  at at (wrapper delegate-invoke) <Module>.invoke_void_object_EventArgs(object,System.EventArgs)
  at Xamarin.Forms.Page.SendAppearing () [0x0004b] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:453
  at Xamarin.Forms.Platform.Android.FlyoutPageRenderer.OnAttachedToWindow () [0x00006] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FlyoutPageRenderer.cs:292
  at Android.Views.View.n_OnAttachedToWindow (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-30/mcw/Android.Views.View.cs:17193
  at at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.51(intptr,intptr)

動作環境 / Environments

  • デバイス:Pixel 5a
  • OS:Android 12
  • バージョン:2022/03/10 現在の develop ブランチ( 1c11fad

その他 / Additional context

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant