gregkorossy / Android-Support-Preference-V7-Fix

Android androidx.preference support library has some issues, this lib tries to fix them.
https://discord.gg/87NVsSK
Apache License 2.0
497 stars 47 forks source link

Huawei Mate 9 (Android 7.0) #188

Open anonym24 opened 6 years ago

anonym24 commented 6 years ago

Google Console reports this crash for this device when it tries to open Preference Settings screen All other devices works fine

FATAL EXCEPTION: ControllerMessenger
Process: *, PID: 10621
java.lang.IllegalStateException: Fragment h{2fd1e0b} not attached to a context.
    at android.support.v4.app.Fragment.getResources(Fragment.java)
    at <OR> android.support.v4.app.Fragment.performActivityCreated(Fragment.java)
    at android.support.v4.app.Fragment.dump(Fragment.java)
    at <OR> android.support.v4.app.Fragment.findFragmentByWho(Fragment.java)
    at <OR> android.support.v4.app.Fragment.getLifecycle(Fragment.java)
    at <OR> android.support.v4.app.Fragment.getString(Fragment.java)
    at <OR> android.support.v4.app.Fragment.instantiate(Fragment.java)
    at <OR> android.support.v4.app.Fragment.isSupportFragmentClass(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onActivityResult(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onAttach(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onAttach(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onCreate(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onCreateOptionsMenu(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onCreateView$469ccb8a(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onOptionsItemSelected(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onRequestPermissionsResult(Fragment.java)
    at <OR> android.support.v4.app.Fragment.onViewCreated(Fragment.java)
    at <OR> android.support.v4.app.Fragment.performConfigurationChanged(Fragment.java)
    at <OR> android.support.v4.app.Fragment.performMultiWindowModeChanged(Fragment.java)
    at <OR> android.support.v4.app.Fragment.performPrepareOptionsMenu(Fragment.java)
    at <OR> android.support.v4.app.Fragment.requestPermissions(Fragment.java)
    at <OR> android.support.v4.app.Fragment.setAnimatingAway(Fragment.java)
    at <OR> android.support.v4.app.Fragment.setAnimator(Fragment.java)
    at <OR> android.support.v4.app.Fragment.setIndex(Fragment.java)
    at <OR> android.support.v4.app.Fragment.setNextTransition(Fragment.java)
    at <OR> android.support.v4.app.Fragment.setOnStartEnterTransitionListener(Fragment.java)
    at <OR> android.support.v4.app.Fragment.setTargetFragment$4b1b893a(Fragment.java)
    at <OR> android.support.v4.app.Fragment.startActivity(Fragment.java)
gregkorossy commented 6 years ago

I don't see anything related to this lib in the stack trace.