Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin is suddenly crashing on Pixel phones running Android 14 #300

Open
jondspa opened this issue Apr 5, 2024 · 0 comments
Open

Plugin is suddenly crashing on Pixel phones running Android 14 #300

jondspa opened this issue Apr 5, 2024 · 0 comments

Comments

@jondspa
Copy link

jondspa commented Apr 5, 2024

Plugin version: 0.9.3
Android 14
Google Pixel 6, 7, or 8
Cordova Android platform 11.0.0

Hi -

My Cordova app has suddenly started crashing using the TimePickerDialog API. This is only happening on Google Pixel 6, 7, or 8's running Android 14. I see there was a security update March 4, 2024 and the crashes started on March 7, 2024 - maybe there's a connection? No other Android 14 device is affected and other Android versions are fine! iOS is fine!

Crashes occur when the user invokes the date and time picker, chooses the date (which is fine), but anything the user does with the time picker (hits the + or -, types in hour or minute and taps "next") causes a crash.

I looked in the Google issues tracker and don't see anything relevant: https://issuetracker.google.com/issues?q=status:open%20timepickerdialog

Here is the crash log

 Exception java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.widget.EditText.hasFocus()' on a null object reference
   at android.widget.TimePickerSpinnerDelegate.updateInputState (TimePickerSpinnerDelegate.java:480)
   at android.widget.TimePickerSpinnerDelegate.-$$Nest$mupdateInputState
   at android.widget.TimePickerSpinnerDelegate$2.onValueChange (TimePickerSpinnerDelegate.java:119)
   at android.widget.NumberPicker.notifyChange (NumberPicker.java:2080)
   at android.widget.NumberPicker.setValueInternal (NumberPicker.java:1850)
   at android.widget.NumberPicker.validateInputTextView (NumberPicker.java:2030)
   at android.widget.NumberPicker.-$$Nest$mvalidateInputTextView
   at android.widget.NumberPicker$3.onFocusChange (NumberPicker.java:769)
   at android.view.View.onFocusChanged (View.java:8411)
   at android.widget.TextView.onFocusChanged (TextView.java:12813)
   at android.view.View.clearFocusInternal (View.java:8241)
   at android.view.View.clearFocus (View.java:8220)
   at android.view.ViewGroup.clearFocus (ViewGroup.java:1196)
   at android.view.ViewGroup.clearFocus (ViewGroup.java:1196)
   at android.view.ViewGroup.clearFocus (ViewGroup.java:1196)
   at android.view.ViewGroup.clearFocus (ViewGroup.java:1196)
   at android.app.TimePickerDialog$1.onClick (TimePickerDialog.java:159)
   at android.view.View.performClick (View.java:7729)
   at android.view.View.performClickInternal (View.java:7706)
   at android.view.View.-$$Nest$mperformClickInternal
   at android.view.View$PerformClick.run (View.java:30484)
   at android.os.Handler.handleCallback (Handler.java:959)
   at android.os.Handler.dispatchMessage (Handler.java:100)
   at android.os.Looper.loopOnce (Looper.java:232)
   at android.os.Looper.loop (Looper.java:317)
   at android.app.ActivityThread.main (ActivityThread.java:8501)
   at java.lang.reflect.Method.invoke
   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
   at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:878)

Any help would be most appreciated!

Thanks,
- Jon

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

No branches or pull requests

1 participant