Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Fix progress bar #237

Merged
merged 3 commits into from
May 3, 2017
Merged

Conversation

bmourat
Copy link
Contributor

@bmourat bmourat commented May 3, 2017

  • Fixed progress bar bug described here
  • Fixed behaviour on configuration change, progress bar stays visible until task finishes.

private void restoreSendFeedbackTask() {
Object object = getLastNonConfigurationInstance();
if (object != null && object instanceof SendFeedbackTask) {
mSendFeedbackTask = (SendFeedbackTask) (object);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO (SendFeedbackTask) object is also fine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@duchuyctlk you mean we don't need instanceof?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. still need. I meant the parenthesis rounding object variable is redundant. 😄

@ElektrojungeAtWork ElektrojungeAtWork merged commit a7d10af into bitstadium:develop May 3, 2017
@bmourat bmourat deleted the fix-progress-bar branch May 10, 2017 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants