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

Fix #849 by caching previous states #880

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

kaichunlin
Copy link
Contributor

Thank you for submitting a pull request! Please add below details so that we can merge it faster.


Agreements

Please check these boxes to ensure you've actually read and understood these important rules!


Overview

When switching to another fragment and back to DeviceFragment, all texts will be animated since the fragment is a completely new fragment with no memory of the states of its previous instance.

The modifications is to store the last displayed state of the DeviceFragment such that when a new instance is created only the diff of the new states will be animated/highlighted.


Classification

Please click the correct checkbox that applies best to classify your pull request.

  • Bugfix (non-breaking change which fixes an existing issue)
  • New feature (non-breaking change which adds functionality)
  • Refactor (restructuring of existing code without changing its external functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

References

If your pull request is related to or solves any existing Issues, please link them here.


Screenshots

If you have created visual changes, please add a screenshot without metadata here.

/**
* Created by Kai on 2016/6/3.
*/

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove the empty line here

import com.secupwn.aimsicd.utils.Device;

/**
* Created by Kai on 2016/6/3.
Copy link
Collaborator

Choose a reason for hiding this comment

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

please use the @author javadoc-tag here

private String networkRoaming;
private int phoneId;

public String getLocationAreaCode() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use lombok's @Getter for all the getters

@larsgrefer
Copy link
Collaborator

@kaichunlin Do you plan to finish this PR? Or should it be closed?

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.

None yet

2 participants