diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ShareWithActivity.java | 12 |
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); + } + } |