Status Update
Comments
ad...@google.com <ad...@google.com> #2
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Android build
Which Android build are you using? (e.g. KVT49L)
Device used
Which device did you use to reproduce this issue?
Can you confirm if you able to reproduce the issue on Pixel/Nexus device as well?
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
NOTE: Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
Please provide sample project or apk to reproduce the issue. Also mention the steps to be followed for reproducing the issue with the given sample project or apk.
Frequency
How frequently does this issue occur? (e.g 100% of the time, 10% of the time)
Android build
Which Android build are you using? (e.g. KVT49L)
Device used
Which device did you use to reproduce this issue?
Can you confirm if you able to reproduce the issue on Pixel/Nexus device as well?
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
NOTE: Please upload the files to Google Drive and share the folder to android-bugreport@google.com, then share the link here.
li...@gmail.com <li...@gmail.com> #3
Hi,
Thanks for looking into this.
I've attached a Fabric dashboard for this issue as it varies between multiple devices and Android versions.
This data represents last 90 days (since I first uploaded the Android X version)
I couldn't reproduce this issue myself. Tried leaving the edit text empty and using "Don't keep activities" and returning from background to foreground, etc... So I can't provide an APK that will reproduce this issue.
The app package on Play store is "com.applay.overlay" in case you want to try reproduce.
Please let me know if I can provide anything else that'll help.
Thanks for looking into this.
I've attached a Fabric dashboard for this issue as it varies between multiple devices and Android versions.
This data represents last 90 days (since I first uploaded the Android X version)
I couldn't reproduce this issue myself. Tried leaving the edit text empty and using "Don't keep activities" and returning from background to foreground, etc... So I can't provide an APK that will reproduce this issue.
The app package on Play store is "com.applay.overlay" in case you want to try reproduce.
Please let me know if I can provide anything else that'll help.
ad...@google.com <ad...@google.com>
lp...@google.com <lp...@google.com> #4
Hi,
Are you using any other androidx.* dependencies? What versions of them are you using?
Are you using any other androidx.* dependencies? What versions of them are you using?
li...@gmail.com <li...@gmail.com> #5
These are all the AndroidX libs I use:
implementation "androidx.preference:preference:1.1.0-alpha01"
implementation "androidx.appcompat:appcompat:1.0.2"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation "com.google.android.material:material:1.0.0"
implementation "androidx.preference:preference:1.1.0-alpha01"
implementation "androidx.appcompat:appcompat:1.0.2"
implementation "androidx.recyclerview:recyclerview:1.0.0"
implementation "com.google.android.material:material:1.0.0"
lp...@google.com <lp...@google.com> #6
Thanks - and just to confirm, you have seen this issue with both preference 1.0.0, and with 1.1.0-alpha01?
li...@gmail.com <li...@gmail.com> #7
Yes. Both.
lp...@google.com <lp...@google.com> #8
I'm not sure how this would appear on 1.0.0, but this is a known issue with 1.1.0 + due to a couple of underlying issues in Fragment.
Tentatively marking as duplicate as I think the following bug should fix this issue as well. Please file a new bug if you still see crashes after this bug has been fixed:https://issuetracker.google.com/issues/122167543
Tentatively marking as duplicate as I think the following bug should fix this issue as well. Please file a new bug if you still see crashes after this bug has been fixed:
Description
The crash occurs to some of the users.
All Android versions and different devices from different vendors.
Happens on both rooted and unrooted devices.
Here is the stacktrace:
Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'boolean androidx.preference.EditTextPreference.b(java.lang.Object)' on a null object reference
androidx.preference.EditTextPreferenceDialogFragmentCompat.onDialogClosed (EditTextPreferenceDialogFragmentCompat.java:95)
androidx.preference.PreferenceDialogFragmentCompat.onDismiss (PreferenceDialogFragmentCompat.java:270)
android.app.Dialog$ListenersHandler.handleMessage (Dialog.java:1321)
android.os.Handler.dispatchMessage (Handler.java:111)
android.os.Looper.loop (Looper.java:194)
android.app.ActivityThread.main (ActivityThread.java:5660)
This code holds the issue:
@Override
public void onDialogClosed(boolean positiveResult) {
if (positiveResult) {
String value = mEditText.getText().toString();
if (getEditTextPreference().callChangeListener(value)) {
getEditTextPreference().setText(value);
}
}
}
Thanks