Skip to content

Commit

Permalink
Fixing double snackbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
samtstern committed Jun 18, 2015
1 parent a6485dc commit 17921e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions android/appinvites/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies {
compile 'com.google.android.gms:play-services-appinvite:7.5.0'

// UiAutomatorTesting
androidTestCompile 'com.android.support.test:runner:0.2'
androidTestCompile 'com.android.support.test:rules:0.2'
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.0'
androidTestCompile 'com.android.support.test:runner:0.3'
androidTestCompile 'com.android.support.test:rules:0.3'
androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.1'
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
public class UiAutomatorTest {

private static final long LAUNCH_TIMEOUT = 5000;
private static final long UI_TIMEOUT = 2500;
private static final long UI_TIMEOUT = 5000;

private static final String APP_PACKAGE = MainActivity.class.getPackage().getName();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ protected void onActivityResult(int requestCode, int resultCode, Intent data) {

if (requestCode == REQUEST_INVITE) {
if (resultCode == RESULT_OK) {
// Check how many invitations were sent and show message to the user
// Check how many invitations were sent and log a message
// The ids array contains the unique invitation ids for each invitation sent
// (one for each contact select by the user). You can use these for analytics
// as the ID will be consistent on the sending and receiving devices.
String[] ids = AppInviteInvitation.getInvitationIds(resultCode, data);
showMessage(getString(R.string.sent_invitations_fmt, ids.length));
Log.d(TAG, getString(R.string.sent_invitations_fmt, ids.length));
} else {
// Sending failed or it was canceled, show failure message to the user
showMessage(getString(R.string.send_failed));
Expand Down

0 comments on commit 17921e4

Please sign in to comment.