Remove getBaseContext

Summary:
We have getAndroidContext() instead.

This will probably take a few iterations to land, but getting it out there so that I can try :)

Reviewed By: muraziz

Differential Revision: D12921523

fbshipit-source-id: 038ecf8c411fdbde6831051b219a43716007ac49
This commit is contained in:
Ian Childs
2018-11-07 04:17:55 -08:00
committed by Facebook Github Bot
parent db42e8e970
commit 7b569a1692
2 changed files with 4 additions and 4 deletions

View File

@@ -135,8 +135,8 @@ public class RootComponentSpec {
@OnEvent(ClickEvent.class)
static void openDiagnostics(final ComponentContext c) {
Intent intent = new Intent(c.getBaseContext(), FlipperDiagnosticActivity.class);
c.getBaseContext().startActivity(intent);
Intent intent = new Intent(c.getAndroidContext(), FlipperDiagnosticActivity.class);
c.getAndroidContext().startActivity(intent);
}
}

View File

@@ -622,9 +622,9 @@ public class DebugComponentDescriptor extends NodeDescriptor<DebugComponent> {
return fromDrawable(null);
}
final T d = Reference.acquire(c.getBaseContext(), r);
final T d = Reference.acquire(c.getAndroidContext(), r);
final InspectorValue v = fromDrawable(d);
Reference.release(c.getBaseContext(), d, r);
Reference.release(c.getAndroidContext(), d, r);
return v;
}