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

Memory footprint #23

Closed
yoavst opened this issue Jun 30, 2015 · 1 comment
Closed

Memory footprint #23

yoavst opened this issue Jun 30, 2015 · 1 comment

Comments

@yoavst
Copy link
Contributor

yoavst commented Jun 30, 2015

Let's says we've got a regular activity:

public class LeakActivity extends AppCompatActivity {
   @Override
    public void onStart() {
        super.onStart();
       new QCircleTemplate(this, TemplateType.CIRCLE_EMPTY);
    }
}

In normal situation the memory usage will be as before, but currently:
img

I'll try to research it by myself.

Referencing issue in my repo: yoavst/quickapps#1

Edit 1:
The memory goes high on:

layoutView = ((Activity)this.mContext).getLayoutInflater().inflate(layout.qcircle_empty, (ViewGroup)null);

Edit 2:
The fix is simple, moving circlebackground.png drawable to drawable-nodpi fixes it. I've checked it on LG G4 and it looks the same.

@lyingdragon
Copy link
Contributor

Fixed. See f3503c3

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

No branches or pull requests

2 participants