use of com.zegoggles.smssync.utils.BundleBuilder in project sms-backup-plus by jberkel.
the class AccountManagerAuthActivity method checkAccounts.
private void checkAccounts() {
Account[] accounts = accountManager.getAccountsByType(GOOGLE_TYPE);
if (accounts == null || accounts.length == 0) {
Log.d(TAG, "no google accounts found on this device, using standard auth");
setResult(RESULT_OK, new Intent(ACTION_FALLBACK_AUTH));
finish();
} else {
Bundle args = new BundleBuilder().putParcelableArray(ACCOUNTS, accounts).build();
((DialogFragment) Fragment.instantiate(this, AccountDialogs.class.getName(), args)).show(getSupportFragmentManager(), null);
}
}
use of com.zegoggles.smssync.utils.BundleBuilder in project sms-backup-plus by jberkel.
the class DonationActivity method showSelectDialog.
private void showSelectDialog(List<SkuDetails> skuDetails) {
if (billingClient == null)
return;
ArrayList<Sku> skus = new ArrayList<Sku>(skuDetails.size());
for (SkuDetails detail : skuDetails) {
skus.add(new Sku(detail));
}
if (DEBUG_IAB) {
Collections.addAll(skus, Sku.Test.SKUS);
}
Collections.sort(skus);
final DonationListFragment donationList = new DonationListFragment();
donationList.setArguments(new BundleBuilder().putParcelableArrayList(SKUS, skus).build());
donationList.show(getSupportFragmentManager(), null);
}
use of com.zegoggles.smssync.utils.BundleBuilder in project sms-backup-plus by jberkel.
the class MainActivity method onPreferenceStartFragment.
@Override
public boolean onPreferenceStartFragment(PreferenceFragmentCompat caller, Preference preference) {
if (LOCAL_LOGV) {
Log.v(TAG, "onPreferenceStartFragment(" + preference + ")");
}
final Fragment fragment = Fragment.instantiate(this, preference.getFragment(), new BundleBuilder().putString(SCREEN_TITLE, String.valueOf(preference.getTitle())).build());
showFragment(fragment, preference.getKey());
return true;
}
Aggregations