コード例 #1
0
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (settingsFragment.getBillingHelper() == null) return;

    if (!settingsFragment.getBillingHelper().handleActivityResult(requestCode, resultCode, data)) {
      super.onActivityResult(requestCode, resultCode, data);
    }
  }
コード例 #2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_settings);
    setToolbarTitle("Settings");
    showToolbarBackButton();

    settingsFragment = new SettingsFragment();

    getFragmentManager().beginTransaction().add(R.id.container, settingsFragment).commit();
  }