private void updateShareIntent() { // update share intent final IntentBuilder builder = IntentBuilder.from(activity); builder.setText(determineRequestStr()); builder.setType("text/plain"); builder.setChooserTitle(R.string.request_coins_share_dialog_title); try { shareActionProvider.setShareIntent(builder.getIntent()); } catch (NullPointerException e) { // Not really sure why this is happening. // Bug #5 Log.e("Litecoin", "NullPointerException when trying to start request coins intent."); Toast.makeText(activity.getApplicationContext(), "Failed to start Request Coins activity", Toast.LENGTH_SHORT).show(); } }
private void updateShareIntent() { // update share intent final IntentBuilder builder = IntentBuilder.from(activity); builder.setText(determineRequestStr(false)); builder.setType("text/plain"); builder.setChooserTitle(R.string.request_coins_share_dialog_title); shareActionProvider.setShareIntent(builder.getIntent()); }