Skip to content

Commit cbd69ef

Browse files
committed
Updated Toast length
1 parent 022f9a9 commit cbd69ef

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Branch-SDK-TestBed/src/main/java/io/branch/branchandroidtestbed/MainActivity.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public void onInitFinished(JSONObject referringParams, BranchError error) {
127127
if (error != null) {
128128
Log.e("BranchSDK_Tester", "branch set Identity failed. Caused by -" + error.getMessage());
129129
}
130-
Toast.makeText(getApplicationContext(), "Set Identity to " + userID, Toast.LENGTH_SHORT).show();
130+
Toast.makeText(getApplicationContext(), "Set Identity to " + userID, Toast.LENGTH_LONG).show();
131131

132132

133133
}
@@ -153,10 +153,10 @@ public void onClick(View v) {
153153
public void onLogoutFinished(boolean loggedOut, BranchError error) {
154154
if (error != null) {
155155
Log.e("BranchSDK_Tester", "onLogoutFinished Error: " + error);
156-
Toast.makeText(getApplicationContext(), "Error Logging Out: " + error.getMessage(), Toast.LENGTH_SHORT).show();
156+
Toast.makeText(getApplicationContext(), "Error Logging Out: " + error.getMessage(), Toast.LENGTH_LONG).show();
157157
} else {
158158
Log.d("BranchSDK_Tester", "onLogoutFinished succeeded: " + loggedOut);
159-
Toast.makeText(getApplicationContext(), "Cleared User ID: " + currentUserId, Toast.LENGTH_SHORT).show();
159+
Toast.makeText(getApplicationContext(), "Cleared User ID: " + currentUserId, Toast.LENGTH_LONG).show();
160160
}
161161
}
162162
});
@@ -460,9 +460,9 @@ public void onClick(View v) {
460460
((ToggleButton) findViewById(R.id.tracking_cntrl_btn)).setOnCheckedChangeListener((buttonView, isChecked) -> {
461461
Branch.getInstance().disableTracking(isChecked, (trackingDisabled, referringParams, error) -> {
462462
if (trackingDisabled) {
463-
Toast.makeText(getApplicationContext(), "Disabled Tracking", Toast.LENGTH_SHORT).show();
463+
Toast.makeText(getApplicationContext(), "Disabled Tracking", Toast.LENGTH_LONG).show();
464464
} else {
465-
Toast.makeText(getApplicationContext(), "Enabled Tracking", Toast.LENGTH_SHORT).show();
465+
Toast.makeText(getApplicationContext(), "Enabled Tracking", Toast.LENGTH_LONG).show();
466466
}
467467
});
468468
});
@@ -489,7 +489,7 @@ public void onClick(View v) {
489489
break;
490490
}
491491
Branch.getInstance().setConsumerProtectionAttributionLevel(preference);
492-
Toast.makeText(MainActivity.this, "Consumer Protection Preference set to " + options[which], Toast.LENGTH_SHORT).show();
492+
Toast.makeText(MainActivity.this, "Consumer Protection Preference set to " + options[which], Toast.LENGTH_LONG).show();
493493
});
494494
builder.create().show();
495495
});
@@ -574,13 +574,13 @@ public void onClick(View v) {
574574
.logEvent(MainActivity.this, new BranchEvent.BranchLogEventCallback() {
575575
@Override
576576
public void onSuccess(int responseCode) {
577-
Toast.makeText(getApplicationContext(), "Sent Branch Commerce Event: " + responseCode, Toast.LENGTH_SHORT).show();
577+
Toast.makeText(getApplicationContext(), "Sent Branch Commerce Event: " + responseCode, Toast.LENGTH_LONG).show();
578578
}
579579

580580
@Override
581581
public void onFailure(Exception e) {
582582
Log.d("BranchSDK_Tester", e.toString());
583-
Toast.makeText(getApplicationContext(), "Error sending Branch Commerce Event: " + e.toString(), Toast.LENGTH_SHORT).show();
583+
Toast.makeText(getApplicationContext(), "Error sending Branch Commerce Event: " + e.toString(), Toast.LENGTH_LONG).show();
584584
}
585585
});
586586

@@ -601,13 +601,13 @@ public void onClick(View v) {
601601
.logEvent(MainActivity.this, new BranchEvent.BranchLogEventCallback() {
602602
@Override
603603
public void onSuccess(int responseCode) {
604-
Toast.makeText(getApplicationContext(), "Sent Branch Content Event: " + responseCode, Toast.LENGTH_SHORT).show();
604+
Toast.makeText(getApplicationContext(), "Sent Branch Content Event: " + responseCode, Toast.LENGTH_LONG).show();
605605
}
606606

607607
@Override
608608
public void onFailure(Exception e) {
609609
Log.d("BranchSDK_Tester", e.toString());
610-
Toast.makeText(getApplicationContext(), "Error sending Branch Content Event: " + e.toString(), Toast.LENGTH_SHORT).show();
610+
Toast.makeText(getApplicationContext(), "Error sending Branch Content Event: " + e.toString(), Toast.LENGTH_LONG).show();
611611
}
612612
});
613613
}
@@ -626,13 +626,13 @@ public void onClick(View v) {
626626
.logEvent(MainActivity.this, new BranchEvent.BranchLogEventCallback() {
627627
@Override
628628
public void onSuccess(int responseCode) {
629-
Toast.makeText(getApplicationContext(), "Sent Branch Lifecycle Event: " + responseCode, Toast.LENGTH_SHORT).show();
629+
Toast.makeText(getApplicationContext(), "Sent Branch Lifecycle Event: " + responseCode, Toast.LENGTH_LONG).show();
630630
}
631631

632632
@Override
633633
public void onFailure(Exception e) {
634634
Log.d("BranchSDK_Tester", e.toString());
635-
Toast.makeText(getApplicationContext(), "Error sending Branch Lifecycle Event: " + e.toString(), Toast.LENGTH_SHORT).show();
635+
Toast.makeText(getApplicationContext(), "Error sending Branch Lifecycle Event: " + e, Toast.LENGTH_LONG).show();
636636
}
637637
});
638638
}
@@ -645,7 +645,7 @@ public void onClick(View v) {
645645
@Override
646646
public void onLogoutFinished(boolean loggedOut, BranchError error) {
647647
Log.d("BranchSDK_Tester", "onLogoutFinished " + loggedOut + " errorMessage " + error);
648-
Toast.makeText(getApplicationContext(), "Logged Out", Toast.LENGTH_SHORT).show();
648+
Toast.makeText(getApplicationContext(), "Logged Out", Toast.LENGTH_LONG).show();
649649
}
650650
});
651651

0 commit comments

Comments
 (0)