aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-10-21 21:40:42 +0200
committerChristian Schneppe <christian@pix-art.de>2016-10-21 21:40:42 +0200
commitdbb43eb7a456a9cbdc4d21b6143796c84c5d2ee6 (patch)
tree1bc4c5aef005cfc8d70e1a72de339a5edc316b33 /src
parent475422820c73ea25b06845a1bafe93979739d91f (diff)
stop rotation in ShareWithActivity
Diffstat (limited to 'src')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ShareWithActivity.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
index e2280bdf2..62bea85f9 100644
--- a/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ShareWithActivity.java
@@ -2,6 +2,7 @@ package de.pixart.messenger.ui;
import android.app.PendingIntent;
import android.content.Intent;
+import android.content.pm.ActivityInfo;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
@@ -143,6 +144,8 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
+
if (getActionBar() != null) {
getActionBar().setDisplayHomeAsUpEnabled(false);
getActionBar().setHomeButtonEnabled(false);
@@ -162,7 +165,7 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
}
});
- this.share = new Share();
+ this.share = new Share();
}
@Override
@@ -372,4 +375,11 @@ public class ShareWithActivity extends XmppActivity implements XmppConnectionSer
super.onBackPressed();
}
}
+
+ @Override
+ public void onStop() {
+ super.onStop();
+ setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED);
+ }
+
}