ViewTreeObserver.removeOnGlobalLayoutListener not available on <16

Bug #1303380 reported by pjv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Collectionista
Fix Committed
High
pjv

Bug Description

Method is only introduced in version 16. Used in lifecycle methods that run from API 1 on. ActivityChooserView could require more merging (from older versions of AOSP). Workarounded for now. No tested yet.

These were the occurrences:
Bugsense

Error Message

java.lang.NoSuchMethodError: android.view.ViewTreeObserver.removeOnGlobalLayoutListener

Where

Collectionista:431

Short Stacktrace

0 java.lang.NoSuchMethodError: android.view.ViewTreeObserver.removeOnGlobalLayoutListener
1 at net.lp.collectionista.ui.actions.b.onDetachedFromWindow(Collectionista:431)
2 at android.view.View.dispatchDetachedFromWindow(View.java:9823)
3 at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2268)
4 at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3581)
5 at android.view.ViewGroup.removeViewAt(ViewGroup.java:3541)

Error Message

java.lang.NoSuchMethodError: android.view.ViewTreeObserver.removeOnGlobalLayoutListener

Where

Collectionista:397

Short Stacktrace

0 java.lang.NoSuchMethodError: android.view.ViewTreeObserver.removeOnGlobalLayoutListener
1 at net.lp.collectionista.ui.actions.b.a(Collectionista:397)
2 at net.lp.collectionista.ui.actions.b$b.onItemClick(Collectionista:580)
3 at android.widget.AdapterView.performItemClick(AdapterView.java:292)
4 at android.widget.AbsListView.performItemClick(AbsListView.java:1058)
5 at android.widget.AbsListView$PerformClick.run(AbsListView.java:2514)
Affected App Versions

0.8.0

Affected SDKs

4.0.3

Details (last occurence of error)

OS Android 4.0.3
App Version 0.8.0
Device Slider SL101
Country DE
wifi_on true
screen_dpi(x:y) 160.15764:160.0
mobile_net_on false
gps_on not available [permissions]
sdk_version bugsense-version-0.6
screen:height 1232
screen:orientation 270
screen:width 800

Related branches

pjv (pjv)
Changed in collectionista:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → pjv (pjv)
Revision history for this message
pjv (pjv) wrote :
Revision history for this message
pjv (pjv) wrote :
Download full text (3.3 KiB)

java.lang.NoSuchMethodError: android.view.ViewTreeObserver.removeOnGlobalLayoutListener
at net.lp.collectionista.ui.actions.ActivityChooserView.void onDetachedFromWindow()(Collectionista:431)
at android.view.View.dispatchDetachedFromWindow(View.java:9823)
at android.view.ViewGroup.dispatchDetachedFromWindow(ViewGroup.java:2268)
at android.view.ViewGroup.removeViewInternal(ViewGroup.java:3581)
at android.view.ViewGroup.removeViewAt(ViewGroup.java:3541)
at com.android.internal.view.menu.BaseMenuPresenter.filterLeftoverView(BaseMenuPresenter.java:139)
at com.android.internal.view.menu.ActionMenuPresenter.filterLeftoverView(ActionMenuPresenter.java:235)
at com.android.internal.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:112)
at com.android.internal.view.menu.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:187)
at com.android.internal.view.menu.MenuBuilder.dispatchPresenterUpdate(MenuBuilder.java:244)
at com.android.internal.view.menu.MenuBuilder.onItemsChanged(MenuBuilder.java:941)
at com.android.internal.view.menu.MenuBuilder.startDispatchingItemsChanged(MenuBuilder.java:964)
at com.android.internal.policy.impl.PhoneWindow.preparePanel(PhoneWindow.java:431)
at com.android.internal.policy.impl.PhoneWindow.invalidatePanelMenu(PhoneWindow.java:739)
at android.app.Activity.invalidateOptionsMenu(Activity.java:2552)
at android.support.v4.app.ActivityCompatHoneycomb.void invalidateOptionsMenu(android.app.Activity)(Collectionista:29)
at android.support.v4.app.FragmentActivity.void supportInvalidateOptionsMenu()(Collectionista:648)
at android.support.v4.app.Fragment.void setHasOptionsMenu(boolean)(Collectionista:803)
at net.lp.collectionista.ui.fragments.CollectionsListFragment.void onStop()(Collectionista:386)
at android.support.v4.app.Fragment.void performStop()(Collectionista:1673)
at android.support.v4.app.FragmentManagerImpl.void moveToState(android.support.v4.app.Fragment,int,int,int,boolean)(Collectionista:979)
at android.support.v4.app.FragmentManagerImpl.void moveToState(int,int,int,boolean)(Collectionista:1104)
at android.support.v4.app.FragmentManagerImpl.void moveToState(int,boolean)(Collectionista:1086)
at android.support.v4.app.FragmentManagerImpl.void dispatchStop()(Collectionista:1907)
at android.support.v4.app.FragmentActivity.void onStop()(Collectionista:612)
at net.lp.collectionista.ui.activities.tablets.BaseMultiPaneWindow.void onStop()(Collectionista:855)
at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1174)
at android.app.Activity.performStop(Activity.java:4603)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3071)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3130)
at android.app.ActivityThread.access$1200(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1180)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(Z...

Read more...

Revision history for this message
pjv (pjv) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.