Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 54
ADFA-2794 Another attempt to fix all the TimeoutException / unknown finalizer crashes#1239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -36,6 +36,7 @@ | ||
| import java.io.FileInputStream; | ||
| import java.io.FileNotFoundException; | ||
| import java.io.IOException; | ||
| import java.io.InputStream; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
| @@ -81,9 +82,14 @@ public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceStat | ||
| * @param filePath = Current project colors file path; | ||
| */ | ||
| public void loadColorsFromXML(String filePath) throws FileNotFoundException { | ||
| InputStream stream = new FileInputStream(filePath); | ||
| colorParser = new ValuesResourceParser(stream, ValuesResourceParser.TAG_COLOR); | ||
| colorList = colorParser.getValuesList(); | ||
| try (InputStream stream = new FileInputStream(filePath)) { | ||
| colorParser = new ValuesResourceParser(stream, ValuesResourceParser.TAG_COLOR); | ||
| colorList = colorParser.getValuesList(); | ||
| } catch (FileNotFoundException e) { | ||
| throw e; | ||
| } catch (IOException e) { | ||
| e.printStackTrace(); | ||
| } | ||
| } | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| private void setupDialogViews(LayoutValuesItemDialogBinding bind) { | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -31,6 +31,7 @@ | ||
| import java.io.FileInputStream; | ||
| import java.io.FileNotFoundException; | ||
| import java.io.IOException; | ||
| import java.io.InputStream; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
| @@ -75,9 +76,14 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) { | ||
| * @param filePath = Current project strings file path; | ||
| */ | ||
| public void loadStringsFromXML(String filePath) throws FileNotFoundException { | ||
| InputStream stream = new FileInputStream(filePath); | ||
| stringParser = new ValuesResourceParser(stream, ValuesResourceParser.TAG_STRING); | ||
| stringList = stringParser.getValuesList(); | ||
| try (InputStream stream = new FileInputStream(filePath)) { | ||
| stringParser = new ValuesResourceParser(stream, ValuesResourceParser.TAG_STRING); | ||
| stringList = stringParser.getValuesList(); | ||
| } catch (FileNotFoundException e) { | ||
| throw e; | ||
| } catch (IOException e) { | ||
| e.printStackTrace(); | ||
| } | ||
| } | ||
coderabbitai[bot] marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| public void addString() { | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.