You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
LayoutInflater: catch non critical exception in generateLayoutParams
This commit is contained in:
@@ -178,6 +178,7 @@ public class LayoutInflater {
|
||||
Slog.v(TAG, "Creating params from root: " + root);
|
||||
|
||||
// Create layout params that match root, if supplied
|
||||
try {
|
||||
params = root.generateLayoutParams(attrs);
|
||||
params.resolveLayoutDirection(root.getLayoutDirection());
|
||||
if (!attachToRoot) {
|
||||
@@ -185,6 +186,9 @@ public class LayoutInflater {
|
||||
// attaching. (If we are, we use addView, below)
|
||||
temp.setLayoutParams(params);
|
||||
}
|
||||
} catch (RuntimeException e) {
|
||||
Slog.w(TAG, "Exception in generateLayoutParams:", e);
|
||||
}
|
||||
}
|
||||
|
||||
Slog.v(TAG, "-----> start inflating children");
|
||||
|
||||
Reference in New Issue
Block a user