FQN Cleanup
Summary: Fixing a silly missing import Reviewed By: muraziz Differential Revision: D23265033 fbshipit-source-id: 0e78d19314df853d2c512535650d3294bf3099e0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
47d3dd6413
commit
b109fc4d3e
@@ -27,8 +27,7 @@ import javax.annotation.Nullable;
|
|||||||
|
|
||||||
public class DataUtils {
|
public class DataUtils {
|
||||||
|
|
||||||
static List<com.facebook.flipper.plugins.inspector.Named<com.facebook.flipper.core.FlipperObject>>
|
static List<Named<FlipperObject>> getPropData(Object node) throws Exception {
|
||||||
getPropData(Object node) throws Exception {
|
|
||||||
final FlipperObject.Builder props = new FlipperObject.Builder();
|
final FlipperObject.Builder props = new FlipperObject.Builder();
|
||||||
List<Named<FlipperObject>> data = new ArrayList<>();
|
List<Named<FlipperObject>> data = new ArrayList<>();
|
||||||
|
|
||||||
@@ -110,17 +109,17 @@ public class DataUtils {
|
|||||||
return hasState ? state.build() : null;
|
return hasState ? state.build() : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
static com.facebook.flipper.plugins.inspector.InspectorValue fromDrawable(Drawable d) {
|
static InspectorValue fromDrawable(Drawable d) {
|
||||||
int color = 0;
|
int color = 0;
|
||||||
if (d instanceof ColorDrawable) {
|
if (d instanceof ColorDrawable) {
|
||||||
color = ((ColorDrawable) d).getColor();
|
color = ((ColorDrawable) d).getColor();
|
||||||
} else if (d instanceof ComparableColorDrawable) {
|
} else if (d instanceof ComparableColorDrawable) {
|
||||||
color = ((ComparableColorDrawable) d).getColor();
|
color = ((ComparableColorDrawable) d).getColor();
|
||||||
}
|
}
|
||||||
return com.facebook.flipper.plugins.inspector.InspectorValue.mutable(Color, color);
|
return InspectorValue.mutable(Color, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
static com.facebook.flipper.plugins.inspector.InspectorValue fromColor(int color) {
|
static InspectorValue fromColor(int color) {
|
||||||
return com.facebook.flipper.plugins.inspector.InspectorValue.mutable(Color, color);
|
return InspectorValue.mutable(Color, color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user