Repository: incubator-taverna-mobile
Updated Branches:
  refs/heads/master 7522bc691 -> eaa93fdd1


fix login activity memory leak


Project: http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/commit/5f907bdb
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/tree/5f907bdb
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/diff/5f907bdb

Branch: refs/heads/master
Commit: 5f907bdb9e922d49b668ee43fd71060d88edaca3
Parents: 7522bc6
Author: Sagar <kumarsagar15...@gmail.com>
Authored: Sat Feb 17 19:47:13 2018 +0530
Committer: Sagar <kumarsagar15...@gmail.com>
Committed: Sat Feb 17 19:47:13 2018 +0530

----------------------------------------------------------------------
 .../java/org/apache/taverna/mobile/ui/login/LoginFragment.java  | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-taverna-mobile/blob/5f907bdb/app/src/main/java/org/apache/taverna/mobile/ui/login/LoginFragment.java
----------------------------------------------------------------------
diff --git 
a/app/src/main/java/org/apache/taverna/mobile/ui/login/LoginFragment.java 
b/app/src/main/java/org/apache/taverna/mobile/ui/login/LoginFragment.java
index 52cdf50..fb6e434 100644
--- a/app/src/main/java/org/apache/taverna/mobile/ui/login/LoginFragment.java
+++ b/app/src/main/java/org/apache/taverna/mobile/ui/login/LoginFragment.java
@@ -187,8 +187,9 @@ public class LoginFragment extends Fragment implements 
LoginMvpView, View.OnFocu
 
     @Override
     public void showDashboardActivity() {
-
-        startActivity(new Intent(getActivity(), DashboardActivity.class));
+        Intent intent = new Intent(getActivity(), DashboardActivity.class);
+        intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | 
Intent.FLAG_ACTIVITY_CLEAR_TASK);
+        startActivity(intent);
         getActivity().finish();
     }
 

Reply via email to