@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); } }
@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(); }