New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
menu: add upgrade notification (fixes #536)(fixes #132) #538
Conversation
@@ -192,6 +193,7 @@ private void checkUpgradeStatus() { | |||
updateRightNow = false; | |||
pd.dismiss(); | |||
Toast.makeText(getContext(), "Treehouses Cli has been updated!!!", Toast.LENGTH_LONG).show(); | |||
InitialActivity.getInstance().setNotification(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sriharivishnu please use interface callback , instead of getting instance of activity from fragment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok I will change this
@sriharivishnu it is not showing notification.
|
@sriharivishnu it appear after i turn off the screen and turned on again. Please fix this issue. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sriharivishnu i mean sometimes the icon is not visible, and it is visible after i turn the screen off and on. We can merge this PR , and fix that issue later.
Fixes #536 #132
Performs upgrade check in the home screen, and then uses that result to display a red notification beside the Status icon if there is a new upgrade available.