Skip to content

Commit c9f00e9

Browse files
author
Mohamed Sobhy
committed
Use shake + disable intro dialog + show intro dialog on clicking share from the nav drawer
1 parent fd7a071 commit c9f00e9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/java/com/example/instabug/SampleApplication.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public void onCreate() {
2323
.setEmailFieldRequired(false)
2424
.setFloatingButtonOffsetFromTop(400)
2525
.setColorTheme(IBGColorTheme.IBGColorThemeLight)
26-
.setInvocationEvent(IBGInvocationEvent.IBGInvocationEventFloatingButton)
26+
.setShouldShowIntroDialog(false)
27+
.setInvocationEvent(IBGInvocationEvent.IBGInvocationEventShake)
2728
// TODO the following are 3 acceptable ways to force Locale in Instabug (last one is the only 1 applied)
2829
.setLocale(new Locale(InstabugLocale.SIMPLIFIED_CHINESE.getCode(), InstabugLocale.SIMPLIFIED_CHINESE.getCountry()))
2930
.setLocale(new Locale(InstabugLocale.FRENCH.getCode()))

app/src/main/java/com/example/instabug/ui/activities/MainActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public void onClick(DialogInterface dialog, int which) {
111111
} else if (id == R.id.nav_share) {
112112
startActivity(Intent.createChooser(getShareIntent(), getResources().getString(R.string.share_to_friends)));
113113
} else if (id == R.id.nav_about) {
114+
Instabug.showIntroMessage();
114115
// TODO click about to show dialog to test screenshot with dialogs
115116
Toast.makeText(this, "Coming soon", Toast.LENGTH_SHORT).show();
116117
}

0 commit comments

Comments
 (0)