Kaydet (Commit) 2e30c62e authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

android: don't return to open document if viewing license / notice

Change-Id: I12994aa60fa2476ef94153b5ba13000ece71d28b
üst aadf10bb
...@@ -176,7 +176,7 @@ public class LibreOfficeMainActivity extends Activity { ...@@ -176,7 +176,7 @@ public class LibreOfficeMainActivity extends Activity {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
Intent intent = new Intent(view.getContext(), LibreOfficeMainActivity.class); 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")); intent.setData(Uri.parse("file:///assets/license.txt"));
startActivity(intent); startActivity(intent);
} }
...@@ -187,7 +187,7 @@ public class LibreOfficeMainActivity extends Activity { ...@@ -187,7 +187,7 @@ public class LibreOfficeMainActivity extends Activity {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
Intent intent = new Intent(view.getContext(), LibreOfficeMainActivity.class); 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")); intent.setData(Uri.parse("file:///assets/notice.txt"));
startActivity(intent); startActivity(intent);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment