From 2e30c62e61d2f2d478db52ddbc8c7a340b5e5c31 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Tue, 30 Sep 2014 21:16:29 +0200 Subject: android: don't return to open document if viewing license / notice Change-Id: I12994aa60fa2476ef94153b5ba13000ece71d28b --- .../LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'android') diff --git a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java index 2f69cf32645e..64d70d058246 100644 --- a/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java +++ b/android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java @@ -176,7 +176,7 @@ public class LibreOfficeMainActivity extends Activity { @Override public void onClick(View view) { Intent intent = new Intent(view.getContext(), LibreOfficeMainActivity.class); - //intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setData(Uri.parse("file:///assets/license.txt")); startActivity(intent); } @@ -187,7 +187,7 @@ public class LibreOfficeMainActivity extends Activity { @Override public void onClick(View view) { Intent intent = new Intent(view.getContext(), LibreOfficeMainActivity.class); - //intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); intent.setData(Uri.parse("file:///assets/notice.txt")); startActivity(intent); } -- cgit