mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-10 13:16:04 -04:00
Fix build error
This commit is contained in:
parent
f6fd1c152b
commit
116591b01b
@ -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())
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user