yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
891 stars 131 forks source link

Cannot rotate Android device when Share dialog is open #102

Open philipgen opened 3 years ago

philipgen commented 3 years ago

Description of the bug

Cannot rotate Android device when Share dialog is open

Reproduction steps

  1. Open the Share Dialog
  2. Rotate the device

Expected: Device rotates

Acutal: Device does not rotate

Note: Behavior does not happen on iOS

Platform specs

Please provide the following info if this is a Unity 3D repository.

Additional info

I have attached a simple Unity project and apk . (Be sure to rename the apk.zip to apk as I cannot attach apk) Share File.zip ShareFile.apk.zip

yasirkula commented 3 years ago

I can reproduce the issue. I'm not sure how it can be resolved, though. Here are my findings and some additional information:

@Override
public void onConfigurationChanged( Configuration newConfig)
{
    super.onConfigurationChanged( newConfig );
    getActivity().onConfigurationChanged( newConfig );
}

So, I don't know how this issue can be resolved.