Remove unused return values
This commit is contained in:
parent
a842ec26c0
commit
527c7ec54e
1 changed files with 2 additions and 4 deletions
|
|
@ -91,7 +91,7 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!checkShowIntro()) {
|
if (!checkShowIntro()) {
|
||||||
checkShowChangelog();
|
showChangelog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -353,18 +353,16 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkShowChangelog() {
|
private void showChangelog() {
|
||||||
try {
|
try {
|
||||||
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
|
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
|
||||||
int currentVersion = pInfo.versionCode;
|
int currentVersion = pInfo.versionCode;
|
||||||
if (currentVersion != PreferenceUtil.getInstance(this).getLastChangelogVersion()) {
|
if (currentVersion != PreferenceUtil.getInstance(this).getLastChangelogVersion()) {
|
||||||
ChangelogDialog.create().show(getSupportFragmentManager(), "CHANGE_LOG_DIALOG");
|
ChangelogDialog.create().show(getSupportFragmentManager(), "CHANGE_LOG_DIALOG");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
} catch (PackageManager.NameNotFoundException e) {
|
} catch (PackageManager.NameNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface MainActivityFragmentCallbacks {
|
public interface MainActivityFragmentCallbacks {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue