aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-03-21 21:16:36 +0100
committerChristian Schneppe <christian@pix-art.de>2018-03-21 21:16:36 +0100
commitd1632b84b312c53b15b56a9e02559be3e8e3c169 (patch)
tree4dcacbfbbd8bdd99a209d0e7d4895528e8824f7a /src/main/java/de/pixart/messenger
parent84d4869572f69014793b463e6613230dc39b5370 (diff)
fixed crash in settings
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/ui/SettingsFragment.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/SettingsFragment.java b/src/main/java/de/pixart/messenger/ui/SettingsFragment.java
index 939ef6145..b40875f7c 100644
--- a/src/main/java/de/pixart/messenger/ui/SettingsFragment.java
+++ b/src/main/java/de/pixart/messenger/ui/SettingsFragment.java
@@ -37,10 +37,14 @@ public class SettingsFragment extends PreferenceFragment {
}
public void setActivityIntent(final Intent intent) {
+ boolean wasEmpty = TextUtils.isEmpty(page);
if (intent != null) {
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
if (intent.getExtras() != null) {
this.page = intent.getExtras().getString("page");
+ if (wasEmpty) {
+ openPreferenceScreen(page);
+ }
}
}
}