1
0
Fork 0
mirror of https://github.com/ethauvin/android-about-box.git synced 2025-04-25 02:37:11 -07:00

Added activity context

This commit is contained in:
Alexandr Dibrivnyi 2017-05-16 12:50:32 +03:00
parent fc4c2ee3ab
commit 1ad0a69002
2 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,9 @@
package com.eggheadgames.aboutbox; package com.eggheadgames.aboutbox;
import android.app.Activity;
public interface IShare { public interface IShare {
void share(); void share(Activity activity);
} }

View file

@ -110,7 +110,7 @@ public class AboutActivity extends MaterialAboutActivity {
if (config.share == null) { if (config.share == null) {
ShareUtil.share(AboutActivity.this); ShareUtil.share(AboutActivity.this);
} else { } else {
config.share.share(); config.share.share(AboutActivity.this);
} }
logUIEventName(config.analytics, config.logUiEventName, getString(R.string.egab_share_log_event)); logUIEventName(config.analytics, config.logUiEventName, getString(R.string.egab_share_log_event));
} }