Skip to content
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

DEV-20171230 Send/Share crashes from within preview #1918

Closed
rullzer opened this issue Jan 3, 2018 · 3 comments · Fixed by #1929
Closed

DEV-20171230 Send/Share crashes from within preview #1918

rullzer opened this issue Jan 3, 2018 · 3 comments · Fixed by #1929

Comments

@rullzer
Copy link
Member

rullzer commented Jan 3, 2018

  1. Open an image
  2. Open menu
  3. Click Send/Share
  4. 💥

All works as expected if I click on the share icon in the file list next to the same image.

@rullzer
Copy link
Member Author

rullzer commented Jan 3, 2018

Trace:

E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.nextcloud.client, PID: 5910
                  java.lang.ClassCastException: com.owncloud.android.ui.preview.PreviewImageActivity cannot be cast to com.owncloud.android.ui.activity.FileDisplayActivity
                      at com.owncloud.android.ui.preview.PreviewImageFragment.onOptionsItemSelected(PreviewImageFragment.java:425)
                      at android.support.v4.app.Fragment.performOptionsItemSelected(Fragment.java:2487)
                      at android.support.v4.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:3307)
                      at android.support.v4.app.FragmentController.dispatchOptionsItemSelected(FragmentController.java:344)
                      at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:374)
                      at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:195)
                      at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:108)
                      at android.support.v7.app.AppCompatDelegateImplV9.onMenuItemSelected(AppCompatDelegateImplV9.java:674)
                      at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:822)
                      at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:171)
                      at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:973)
                      at android.support.v7.view.menu.MenuPopup.onItemClick(MenuPopup.java:127)
                      at android.widget.AdapterView.performItemClick(AdapterView.java:318)
                      at android.widget.AbsListView.performItemClick(AbsListView.java:1158)
                      at android.widget.AbsListView$PerformClick.run(AbsListView.java:3127)
                      at android.widget.AbsListView$3.run(AbsListView.java:4042)
                      at android.os.Handler.handleCallback(Handler.java:790)
                      at android.os.Handler.dispatchMessage(Handler.java:99)
                      at android.os.Looper.loop(Looper.java:164)
                      at android.app.ActivityThread.main(ActivityThread.java:6494)
                      at java.lang.reflect.Method.invoke(Native Method)
                      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
                      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

@rullzer rullzer assigned rullzer and unassigned rullzer Jan 3, 2018
@tobiasKaminsky tobiasKaminsky added this to the Nextcloud App 2.1.0 milestone Jan 4, 2018
tobiasKaminsky added a commit that referenced this issue Jan 8, 2018
fix #1918

Signed-off-by: tobiaskaminsky <[email protected]>
tobiasKaminsky added a commit that referenced this issue Jan 11, 2018
fix #1918

Signed-off-by: tobiaskaminsky <[email protected]>
Apochens added a commit to Apochens/NextCloud that referenced this issue Sep 17, 2021
@maryammsd
Copy link

There is no release version apk file for version 2.1.0. How can I have the apk file with this bug?

@tobiasKaminsky
Copy link
Member

https://github.com/nextcloud/android/releases
We are already at 3.19.1 and in above link you can find the apk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants