java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.LinearLayout

GitHub | hypest | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException bailing from SiteSettingsFragment

    GitHub | 6 months ago | hypest
    java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.LinearLayout

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.FrameLayout cannot be cast to android.widget.LinearLayout

      at org.wordpress.android.util.WPActivityUtils.removeToolbarFromDialog()
    2. org.wordpress.android
      SiteSettingsFragment.onSaveInstanceState
      1. org.wordpress.android.util.WPActivityUtils.removeToolbarFromDialog(WPActivityUtils.java:78)
      2. org.wordpress.android.ui.prefs.SiteSettingsFragment.removeMoreScreenToolbar(SiteSettingsFragment.java:1219)
      3. org.wordpress.android.ui.prefs.SiteSettingsFragment.onSaveInstanceState(SiteSettingsFragment.java:337)
      3 frames
    3. Android Platform
      Activity.onSaveInstanceState
      1. android.app.Fragment.performSaveInstanceState(Fragment.java:2514)
      2. android.app.FragmentManagerImpl.saveFragmentBasicState(FragmentManager.java:1763)
      3. android.app.FragmentManagerImpl.saveAllState(FragmentManager.java:1820)
      4. android.app.FragmentController.saveAllState(FragmentController.java:112)
      5. android.app.Activity.onSaveInstanceState(Activity.java:1485)
      5 frames
    4. Android Support v4
      FragmentActivity.onSaveInstanceState
      1. android.support.v4.app.FragmentActivity.onSaveInstanceState(FragmentActivity.java:567)
      1 frame
    5. Android v7
      AppCompatActivity.onSaveInstanceState
      1. android.support.v7.app.AppCompatActivity.onSaveInstanceState(AppCompatActivity.java:511)
      1 frame
    6. Android Platform
      ActivityThread.handleStopActivity
      1. android.app.Activity.performSaveInstanceState(Activity.java:1414)
      2. android.app.Instrumentation.callActivityOnSaveInstanceState(Instrumentation.java:1300)
      3. android.app.ActivityThread.callCallActivityOnSaveInstanceState(ActivityThread.java:4505)
      4. android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3827)
      5. android.app.ActivityThread.handleStopActivity(ActivityThread.java:3886)
      5 frames