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:
parent
fc4c2ee3ab
commit
1ad0a69002
2 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue