Skip to content

Commit

Permalink
Add native nav bar with title and button icon
Browse files Browse the repository at this point in the history
Summary: Add native android nav bar. Title and button info are from FBDynamicNavigationOption. Set through setBarOption.

Reviewed By: achen1

Differential Revision: D9367058

fbshipit-source-id: 0f3f790d2c4d3af97568927993964678bc028bc3
  • Loading branch information
Jiaqi Wu authored and facebook-github-bot committed Aug 31, 2018
1 parent e595312 commit 72020b2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,14 @@ public void invoke(Object... args) {
};
}

private Context getContext() {
protected Context getContext() {
if (mActivity != null) {
return mActivity;
}
return Assertions.assertNotNull(mFragmentActivity);
}

private Activity getPlainActivity() {
protected Activity getPlainActivity() {
return ((Activity) getContext());
}
}

0 comments on commit 72020b2

Please sign in to comment.