mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-24 18:27: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;
|
||||
|
||||
|
||||
import android.app.Activity;
|
||||
|
||||
public interface IShare {
|
||||
|
||||
void share();
|
||||
void share(Activity activity);
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ public class AboutActivity extends MaterialAboutActivity {
|
|||
if (config.share == null) {
|
||||
ShareUtil.share(AboutActivity.this);
|
||||
} else {
|
||||
config.share.share();
|
||||
config.share.share(AboutActivity.this);
|
||||
}
|
||||
logUIEventName(config.analytics, config.logUiEventName, getString(R.string.egab_share_log_event));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue