Skip to content
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

Merged
merged 11 commits into from Jan 2, 2020
Merged

Conversation

sriharivishnu
Copy link
Contributor

@sriharivishnu sriharivishnu commented Dec 12, 2019

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.

Screen Shot 2019-12-11 at 9 15 44 PM

@@ -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);
Copy link
Member

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.

Copy link
Contributor Author

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 sriharivishnu changed the title add upgrade notification to drawer (fixes #536) add upgrade notification to drawer (fixes #536 #132) Dec 24, 2019
@rrijal53
Copy link
Member

@sriharivishnu it is not showing notification.
New version available in status page

device-2019-12-25-211520

But not showing badge in drawer

device-2019-12-25-211535

@rrijal53
Copy link
Member

@sriharivishnu it appear after i turn off the screen and turned on again. Please fix this issue.

@sriharivishnu
Copy link
Contributor Author

@sriharivishnu it appear after i turn off the screen and turned on again. Please fix this issue.

  • @rrijal53 was the version switched from terminal? It will only check for new upgrades upon entry into the app (It performs the check from HomeFragment)
  • On my device, turning off the screen does not clear the notification. Does it always clear the notification for you?

Copy link
Member

@rrijal53 rrijal53 left a 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.

@dogi dogi changed the title add upgrade notification to drawer (fixes #536 #132) menu: add upgrade notification (fixes #536)(fixes #132) Jan 2, 2020
@dogi dogi merged commit 9b61822 into master Jan 2, 2020
@dogi dogi deleted the notifications branch January 2, 2020 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding notifications when it needed to upgrade
3 participants