-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
IllegalStateException in GridView #1447
Comments
I can solve this by changing: But I do not know if this affects something else? |
Looking through the code I don't know either. May ask @davivel since he also helped me some time ago with the footer handling when I worked on the Material design changes. |
@cornzy is this still valid? I cannot reproduce it. |
@tobiasKaminsky is there a newer beta release? Just checked F-Droid but there is no update. With 20160120 I could still reproduce. |
@cornzy can you give the latest one a try: https://github.com/owncloud/android/blob/beta/apks/owncloud-beta-20160313.apk?raw=true |
@cornzy Please try again |
Sorry, didn't checked Github Mails too long. ************ CAUSE OF ERROR ************ java.lang.IllegalStateException: Cannot add header view to grid -- setAdapter has already been called. |
This is a bug that also happens in master, removing beta. |
We need to refactor the methods in the call tree from We should hide and show the footerView in the grid without adding it , the view itself should be added before, probably in |
Grid view was removed in new architecture. Not reproducible in master either |
I can reproduce this exception with the following steps:
Goto an folder which is configured for grid-view but is empty
Press back button
On master it seems to be necessary to switch from list to gridview prior to click back.
The calling code is in: ExtendedListFragment:428 (function setFooterEnabled)
************ CAUSE OF ERROR ************
java.lang.IllegalStateException: Cannot add header view to grid -- setAdapter has already been called.
at third_parties.in.srain.cube.GridViewWithHeaderAndFooter.addFooterView(GridViewWithHeaderAndFooter.java:183)
at com.owncloud.android.ui.fragment.ExtendedListFragment.setFooterEnabled(ExtendedListFragment.java:490)
at com.owncloud.android.ui.fragment.ExtendedListFragment.setFooterText(ExtendedListFragment.java:516)
at com.owncloud.android.ui.fragment.OCFileListFragment.updateLayout(OCFileListFragment.java:830)
at com.owncloud.android.ui.fragment.OCFileListFragment.listDirectory(OCFileListFragment.java:805)
at com.owncloud.android.ui.fragment.OCFileListFragment.onBrowseUp(OCFileListFragment.java:528)
at com.owncloud.android.ui.activity.FileDisplayActivity.onBackPressed(FileDisplayActivity.java:901)
at android.app.Activity.onKeyUp(Activity.java:2632)
at android.view.KeyEvent.dispatch(KeyEvent.java:3214)
at android.app.Activity.dispatchKeyEvent(Activity.java:2887)
at android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:224)
at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2610)
at android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4777)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4732)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4271)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4324)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4290)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4416)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4298)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4473)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4271)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4324)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4290)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4298)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4271)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4324)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4290)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4449)
at android.view.ViewRootImpl$ImeInputStage.onFinishedInputEvent(ViewRootImpl.java:4613)
at android.view.inputmethod.InputMethodManager$PendingEvent.run(InputMethodManager.java:2766)
at android.view.inputmethod.InputMethodManager.invokeFinishedInputEventCallback(InputMethodManager.java:2358)
at android.view.inputmethod.InputMethodManager.finishedInputEvent(InputMethodManager.java:2349)
at android.view.inputmethod.InputMethodManager$ImeInputEventSender.onInputEventFinished(InputMethodManager.java:2743)
at android.view.InputEventSender.dispatchInputEventFinished(InputEventSender.java:141)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:143)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:6837)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)
************ DEVICE INFORMATION ***********
Brand: samsung
Device: zerolte
Model: SM-G925F
Id: LMY47X
Product: zeroltexx
************ FIRMWARE ************
SDK: 22
Release: 5.1.1
Incremental: G925FXXS3QOK2
The text was updated successfully, but these errors were encountered: