mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2026-08-01 14:19:12 -06:00
Fix build error
This commit is contained in:
parent
f6fd1c152b
commit
116591b01b
2 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue