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()) {
|
||||
checkShowChangelog();
|
||||
showChangelog();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -353,18 +353,16 @@ public class MainActivity extends AbsSlidingMusicPanelActivity {
|
|||
return false;
|
||||
}
|
||||
|
||||
private boolean checkShowChangelog() {
|
||||
private void showChangelog() {
|
||||
try {
|
||||
PackageInfo pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
|
||||
int currentVersion = pInfo.versionCode;
|
||||
if (currentVersion != PreferenceUtil.getInstance(this).getLastChangelogVersion()) {
|
||||
ChangelogDialog.create().show(getSupportFragmentManager(), "CHANGE_LOG_DIALOG");
|
||||
return true;
|
||||
}
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public interface MainActivityFragmentCallbacks {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue