diff options
author | Andrew Dolgov <[email protected]> | 2015-06-05 11:25:23 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2015-06-05 11:25:23 +0300 |
commit | eed69d57e3311ecb634a2f6930b68d9849bd643a (patch) | |
tree | e55836a5efb5993748ded9bc9beaf858591223b9 /org.fox.ttrss/src/main/java | |
parent | df1dcca834d840ac49d502c590eba5912dbda294 (diff) |
move istaskroot crap to the separate tiny launch activity
Diffstat (limited to 'org.fox.ttrss/src/main/java')
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/LaunchActivity.java | 24 | ||||
-rwxr-xr-x | org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java | 6 |
2 files changed, 24 insertions, 6 deletions
diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/LaunchActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/LaunchActivity.java new file mode 100755 index 00000000..cfe71e4c --- /dev/null +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/LaunchActivity.java @@ -0,0 +1,24 @@ +package org.fox.ttrss; + +import android.app.Activity; +import android.content.Intent; +import android.os.Bundle; + +public class LaunchActivity extends Activity { + + @Override + public void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + // https://code.google.com/p/android/issues/detail?id=26658 + if (!isTaskRoot()) { + finish(); + return; + } + + Intent main = new Intent(LaunchActivity.this, OnlineActivity.class); + startActivity(main); + + } + +} diff --git a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java index 86a9214b..8766d3cd 100755 --- a/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java +++ b/org.fox.ttrss/src/main/java/org/fox/ttrss/OnlineActivity.java @@ -155,12 +155,6 @@ public class OnlineActivity extends CommonActivity { super.onCreate(savedInstanceState); - // https://code.google.com/p/android/issues/detail?id=26658 - if (!isTaskRoot()) { - finish(); - return; - } - // SharedPreferences localPrefs = getSharedPreferences("localprefs", Context.MODE_PRIVATE); SharedPreferences localPrefs = getSharedPreferences("localprefs", Context.MODE_PRIVATE); |