Kaydet (Commit) ef99aeea authored tarafından Miklos Vajna's avatar Miklos Vajna

android: eliminate hardcoded LibreOfficeMainActivity and package in LOAbout

Change-Id: I276f27a96b4fb970520dec588b9321731e7fc26b
üst 872e5d85
......@@ -39,9 +39,9 @@ public abstract class LOAbout extends Activity {
private void loadFromAbout(String input) {
if (mNewActivity) {
Intent i = new Intent(Intent.ACTION_VIEW, Uri.fromFile(new File(input)));
i.setComponent(new ComponentName(
"org.libreoffice",
"org.libreoffice.LibreOfficeMainActivity"));
String packageName = getApplicationContext().getPackageName();
ComponentName componentName = new ComponentName(packageName, LibreOfficeMainActivity.class.getName());
i.setComponent(componentName);
startActivity(i);
} else {
LOKitShell.sendEvent(LOEventFactory.close());
......
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