Fix build error

This commit is contained in:
khanhduytran0 2020-03-25 05:43:55 +07:00
parent f6fd1c152b
commit 116591b01b
2 changed files with 6 additions and 1 deletions

View File

@ -885,7 +885,7 @@ public class MCLauncherActivity extends AppCompatActivity
aboutB.setTitle(R.string.mcl_option_about);
try
{
aboutB.setMessage(String.format(getAssetManager().loadAsset("about_en.txt"),
aboutB.setMessage(String.format(Tools.read(getAssets().open("about_en.txt")),
Tools.APP_NAME,
Tools.usingVerName,
org.lwjgl.Sys.getVersion())

View File

@ -361,6 +361,11 @@ public final class Tools
return bytes;
}
public static String read(InputStream is) throws Exception
{
return new String(getByteArray(is));
}
public static String read(String path) throws Exception
{