Search in sources :

Example 6 with WalletApplication

use of de.schildbach.wallet.WalletApplication in project bitcoin-wallet by bitcoin-wallet.

the class EditAddressBookEntryFragment method onAttach.

@Override
public void onAttach(final Context context) {
    super.onAttach(context);
    this.activity = (AbstractWalletActivity) context;
    final WalletApplication application = activity.getWalletApplication();
    this.wallet = application.getWallet();
    this.contentResolver = activity.getContentResolver();
}
Also used : WalletApplication(de.schildbach.wallet.WalletApplication)

Example 7 with WalletApplication

use of de.schildbach.wallet.WalletApplication in project bitcoin-wallet by bitcoin-wallet.

the class SendingAddressesFragment method onAttach.

@Override
public void onAttach(final Context context) {
    super.onAttach(context);
    this.activity = (AbstractWalletActivity) context;
    final WalletApplication application = activity.getWalletApplication();
    this.wallet = application.getWallet();
    this.clipboardManager = (ClipboardManager) activity.getSystemService(Context.CLIPBOARD_SERVICE);
    this.loaderManager = getLoaderManager();
}
Also used : WalletApplication(de.schildbach.wallet.WalletApplication)

Aggregations

WalletApplication (de.schildbach.wallet.WalletApplication)7 Context (android.content.Context)1 DialogInterface (android.content.DialogInterface)1 OnClickListener (android.content.DialogInterface.OnClickListener)1 Stopwatch (com.google.common.base.Stopwatch)1 Configuration (de.schildbach.wallet.Configuration)1 PaymentIntent (de.schildbach.wallet.data.PaymentIntent)1 StringInputParser (de.schildbach.wallet.ui.InputParser.StringInputParser)1 Transaction (org.bitcoinj.core.Transaction)1 VerificationException (org.bitcoinj.core.VerificationException)1 VersionedChecksummedBytes (org.bitcoinj.core.VersionedChecksummedBytes)1