mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-25 10:47:10 -07:00
Fixed PMD
This commit is contained in:
parent
6a2a19f5b4
commit
6ff27e1170
3 changed files with 11 additions and 15 deletions
|
@ -1,20 +1,9 @@
|
|||
package com.eggheadgames.aboutbox;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class AboutConfig {
|
||||
|
||||
public enum BuildType {AMAZON, GOOGLE}
|
||||
|
||||
private static AboutConfig aboutConfig;
|
||||
|
||||
public static AboutConfig getInstance() {
|
||||
if (aboutConfig == null) {
|
||||
aboutConfig = new AboutConfig();
|
||||
}
|
||||
return aboutConfig;
|
||||
}
|
||||
|
||||
// general info
|
||||
public String appName;
|
||||
public int appIcon;
|
||||
|
@ -29,8 +18,7 @@ public class AboutConfig {
|
|||
public String privacyHtmlPath;
|
||||
public String acknowledgmentHtmlPath;
|
||||
public BuildType buildType;
|
||||
|
||||
public Context context;
|
||||
public String packageName;
|
||||
|
||||
// custom analytics and dialog
|
||||
public IAnalytic analytics;
|
||||
|
@ -46,4 +34,12 @@ public class AboutConfig {
|
|||
public String shareMessage;
|
||||
public String sharingTitle;
|
||||
|
||||
public static class SingletonHolder {
|
||||
public static final AboutConfig HOLDER_INSTANCE = new AboutConfig();
|
||||
}
|
||||
|
||||
public static AboutConfig getInstance() {
|
||||
return SingletonHolder.HOLDER_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue