@Override public void onPause() { loaderManager.destroyLoader(ID_RATE_LOADER); Nfc.unpublish(nfcManager, activity); amountCalculatorLink.setListener(null); super.onPause(); }
@Override public void onPause() { if (pocket != null) pocket.removeEventListener(transactionChangeListener); transactionChangeListener.removeCallbacks(); resolver.unregisterContentObserver(addressBookObserver); amountCalculatorLink.setListener(null); stopPolling(); super.onPause(); }
@Override public void onResume() { super.onResume(); amountCalculatorLink.setListener(amountsListener); resolver.registerContentObserver( AddressBookProvider.contentUri(getActivity().getPackageName()), true, addressBookObserver); if (pocket != null) { pocket.addEventListener(transactionChangeListener, Threading.SAME_THREAD); } updateBalance(); updateView(); }
@Override public void onResume() { super.onResume(); amountCalculatorLink.setListener( new CurrencyAmountView.Listener() { @Override public void changed() { updateView(); updateShareIntent(); } @Override public void focusChanged(final boolean hasFocus) {} }); addressView.setOnItemSelectedListener( new OnItemSelectedListener() { @Override public void onItemSelected( final AdapterView<?> parent, final View view, final int position, final long id) { // ignore layout operations if (view == null) return; updateView(); // updateShareIntent(); } @Override public void onNothingSelected(final AdapterView<?> parent) {} }); loaderManager.initLoader(ID_RATE_LOADER, null, rateLoaderCallbacks); if (ENABLE_BLUETOOTH_LISTENING && bluetoothAdapter != null && bluetoothAdapter.isEnabled() && acceptBluetoothPaymentView.isChecked()) startBluetoothListening(); updateView(); }
@Override public void onResume() { super.onResume(); amountCalculatorLink.setListener( new CurrencyAmountView.Listener() { @Override public void changed() { updateView(); } @Override public void focusChanged(final boolean hasFocus) {} }); loaderManager.initLoader(ID_RATE_LOADER, null, rateLoaderCallbacks); if (ENABLE_BLUETOOTH_LISTENING && bluetoothAdapter != null && bluetoothAdapter.isEnabled() && acceptBluetoothPaymentView.isChecked()) startBluetoothListening(); updateView(); }