Minor changes on about_en.txt

This commit is contained in:
khanhduytran0 2020-12-11 19:46:32 +07:00
parent 86deaf55c0
commit 0b8b9ba57f
2 changed files with 7 additions and 5 deletions

View File

@ -22,5 +22,5 @@
- This app is under development and will not be stable.<br> - This app is under development and will not be stable.<br>
- This app is not affiliated with Minecraft, Mojang or Microsoft.<br><br> - This app is not affiliated with Minecraft, Mojang or Microsoft.<br><br>
* Translators can be found at https://crowdin.com/project/pojavlauncher * Translators can be found at <a href="https://crowdin.com/project/pojavlauncher">Crowdin</a>

View File

@ -2,10 +2,11 @@ package net.kdt.pojavlaunch;
import android.app.*; import android.app.*;
import android.content.*; import android.content.*;
import androidx.appcompat.app.*;
import android.text.*; import android.text.*;
import android.text.method.*;
import android.view.*; import android.view.*;
import android.widget.*; import android.widget.*;
import androidx.appcompat.app.*;
import com.kdt.pickafile.*; import com.kdt.pickafile.*;
import java.io.*; import java.io.*;
import net.kdt.pojavlaunch.fragments.*; import net.kdt.pojavlaunch.fragments.*;
@ -79,8 +80,7 @@ public abstract class BaseLauncherActivity extends BaseActivity {
case 4: { // About case 4: { // About
final AlertDialog.Builder aboutB = new AlertDialog.Builder(BaseLauncherActivity.this); final AlertDialog.Builder aboutB = new AlertDialog.Builder(BaseLauncherActivity.this);
aboutB.setTitle(R.string.mcl_option_about); aboutB.setTitle(R.string.mcl_option_about);
try try {
{
aboutB.setMessage(Html.fromHtml(String.format(Tools.read(getAssets().open("about_en.txt")), aboutB.setMessage(Html.fromHtml(String.format(Tools.read(getAssets().open("about_en.txt")),
Tools.APP_NAME, Tools.APP_NAME,
Tools.usingVerName, Tools.usingVerName,
@ -90,7 +90,9 @@ public abstract class BaseLauncherActivity extends BaseActivity {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
aboutB.setPositiveButton(android.R.string.ok, null); aboutB.setPositiveButton(android.R.string.ok, null);
aboutB.show(); AlertDialog aboutDialog = aboutB.show();
TextView aboutTv = aboutDialog.findViewById(android.R.id.message);
aboutTv.setMovementMethod(LinkMovementMethod.getInstance());
} break; } break;
} }
} }