Created
August 21, 2017 21:36
-
-
Save benbaxter/c1949d847ed2b5e46b3ac7dc52014519 to your computer and use it in GitHub Desktop.
Leanback hook to release memory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void reset() { | |
for (int i = 0; i < mTasks.size(); i++) { | |
LoadBitmapAsyncTask task = mTasks.get(i); | |
task.cancel(true); | |
} | |
mTasks.clear(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment