mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 16:16:04 -04:00
Update ImportControlActivity.java
This commit is contained in:
parent
da99ef47ea
commit
cc26e7fa23
@ -185,12 +185,10 @@ public class ImportControlActivity extends Activity {
|
|||||||
String jsonLayoutData = Tools.read(Tools.CTRLMAP_PATH + "/TMP_IMPORT_FILE.json");
|
String jsonLayoutData = Tools.read(Tools.CTRLMAP_PATH + "/TMP_IMPORT_FILE.json");
|
||||||
JSONObject layoutJobj = new JSONObject(jsonLayoutData);
|
JSONObject layoutJobj = new JSONObject(jsonLayoutData);
|
||||||
return layoutJobj.has("version") && layoutJobj.has("mControlDataList");
|
return layoutJobj.has("version") && layoutJobj.has("mControlDataList");
|
||||||
|
|
||||||
}catch (JSONException | IOException e) {
|
}catch (JSONException | IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getNameFromURI(Uri uri) {
|
public String getNameFromURI(Uri uri) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user