<activity
android:name=".ui.activity.FileDisplayActivity"
android:label="@string/app_name"
- android:configChanges="orientation" >
+ >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<activity
android:name=".ui.preview.PreviewImageActivity"
- android:configChanges="orientation" />
+ />
<activity
android:name=".ui.preview.PreviewVideoActivity"
android:label="@string/app_name"
android:theme="@style/Theme.ownCloud.Fullscreen"
- android:configChanges="orientation">
+ >
</activity>
<service
unbindService(mUploadConnection);
}
- @Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- }
-
/**
* Called when the ownCloud {@link Account} associated to the Activity was just updated.
*/
ComponentName name=new ComponentName(actInfo.applicationInfo.packageName, actInfo.name);
mIntent.setComponent(name);
+ dialog.dismiss(); // explicitly added for Android 2.x devices
+
// Send the file
((FileActivity)getSherlockActivity()).startActivity(mIntent);
-
+
}
})
.create();
// Create a new share resource
FileOperationsHelper foh = new FileOperationsHelper();
- foh.shareFileWithLinkToApp(mFile, mIntent, (FileActivity)getSherlockActivity());
+ foh.shareFileWithLinkToApp(mFile, mIntent, (FileActivity)getSherlockActivity());
+
}
})
.create();
}
@Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- }
-
- @Override
public boolean onOptionsItemSelected(MenuItem item) {
boolean returnValue = false;
}
@Override
- public void onConfigurationChanged(Configuration newConfig) {
- super.onConfigurationChanged(newConfig);
- }
-
- @Override
protected void onAccountSet(boolean stateWasRecovered) {
super.onAccountSet(stateWasRecovered);
if (getAccount() != null) {