public class ChangeLog
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ChangeLog.ChangeLogTag |
protected static interface |
ChangeLog.ChangeTag |
static class |
ChangeLog.ReleaseItem
Container used to store information about a release/version.
|
protected static interface |
ChangeLog.ReleaseTag
Contains constants for the release element of
changelog.xml. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CSS |
protected static java.lang.String |
LOG_TAG |
protected android.content.Context |
mContext |
protected java.lang.String |
mCss |
protected static int |
NO_VERSION |
protected static java.lang.String |
VERSION_KEY |
| Constructor and Description |
|---|
ChangeLog(android.content.Context context) |
ChangeLog(android.content.Context context,
android.content.SharedPreferences preferences,
java.lang.String css) |
ChangeLog(android.content.Context context,
java.lang.String css) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ChangeLog.ReleaseItem> |
getChangeLog(boolean full) |
protected java.util.Comparator<ChangeLog.ReleaseItem> |
getChangeLogComparator() |
int |
getCurrentVersionCode() |
java.lang.String |
getCurrentVersionName() |
protected MaterialDialog |
getDialog(boolean full) |
java.lang.String |
getFullLog() |
MaterialDialog |
getFullLogDialog() |
int |
getLastVersionCode() |
protected android.util.SparseArray<ChangeLog.ReleaseItem> |
getLocalizedChangeLog(boolean full) |
java.lang.String |
getLog() |
protected java.lang.String |
getLog(boolean full) |
MaterialDialog |
getLogDialog() |
protected android.util.SparseArray<ChangeLog.ReleaseItem> |
getMasterChangeLog(boolean full) |
boolean |
isFirstRun() |
boolean |
isFirstRunEver() |
protected android.util.SparseArray<ChangeLog.ReleaseItem> |
readChangeLog(org.xmlpull.v1.XmlPullParser xml,
boolean full) |
protected android.util.SparseArray<ChangeLog.ReleaseItem> |
readChangeLogFromResource(int resId,
boolean full) |
void |
skipLogDialog() |
protected void |
updateVersionInPreferences() |
protected static final java.lang.String LOG_TAG
protected static final java.lang.String VERSION_KEY
protected static final int NO_VERSION
public static final java.lang.String DEFAULT_CSS
protected final android.content.Context mContext
protected final java.lang.String mCss
public ChangeLog(android.content.Context context)
public ChangeLog(android.content.Context context,
java.lang.String css)
public ChangeLog(android.content.Context context,
android.content.SharedPreferences preferences,
java.lang.String css)
public int getLastVersionCode()
public int getCurrentVersionCode()
public java.lang.String getCurrentVersionName()
public boolean isFirstRun()
public boolean isFirstRunEver()
public void skipLogDialog()
public MaterialDialog getLogDialog()
public MaterialDialog getFullLogDialog()
protected MaterialDialog getDialog(boolean full)
protected void updateVersionInPreferences()
public java.lang.String getLog()
public java.lang.String getFullLog()
protected java.lang.String getLog(boolean full)
public java.util.List<ChangeLog.ReleaseItem> getChangeLog(boolean full)
protected android.util.SparseArray<ChangeLog.ReleaseItem> getMasterChangeLog(boolean full)
protected android.util.SparseArray<ChangeLog.ReleaseItem> getLocalizedChangeLog(boolean full)
protected final android.util.SparseArray<ChangeLog.ReleaseItem> readChangeLogFromResource(int resId, boolean full)
protected android.util.SparseArray<ChangeLog.ReleaseItem> readChangeLog(org.xmlpull.v1.XmlPullParser xml, boolean full)
protected java.util.Comparator<ChangeLog.ReleaseItem> getChangeLogComparator()