Skip to content

Commit

Permalink
Optimize sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyge committed Nov 16, 2016
1 parent 77b1f25 commit cd4f394
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void onClick(View v) {

menuList.add("内存缓存");
menuList.add(new CheckMenu(this, "全局禁用内存缓存", Settings.PREFERENCE_GLOBAL_DISABLE_CACHE_IN_MEMORY, null, menuClickListener));
menuList.add(new InfoMenu("点击清除内存缓存") {
menuList.add(new InfoMenu("清除缓存") {
@Override
public String getInfo() {
MemoryCache memoryCache = Sketch.with(getBaseContext()).getConfiguration().getMemoryCache();
Expand All @@ -208,7 +208,7 @@ public void onClick(AssemblyRecyclerAdapter adapter) {
adapter.notifyDataSetChanged();
}
});
menuList.add(new InfoMenu("点击清除占位图内存缓存") {
menuList.add(new InfoMenu("清除占位图缓存") {
@Override
public String getInfo() {
MemoryCache stateImageMemoryCache = Sketch.with(getBaseContext()).getConfiguration().getStateImageMemoryCache();
Expand All @@ -227,7 +227,7 @@ public void onClick(AssemblyRecyclerAdapter adapter) {

menuList.add("磁盘缓存");
menuList.add(new CheckMenu(this, "全局禁用磁盘缓存", Settings.PREFERENCE_GLOBAL_DISABLE_CACHE_IN_DISK, null, menuClickListener));
menuList.add(new InfoMenu("点击清除磁盘缓存") {
menuList.add(new InfoMenu("清除缓存") {
@Override
public String getInfo() {
DiskCache diskCache = Sketch.with(getBaseContext()).getConfiguration().getDiskCache();
Expand Down

0 comments on commit cd4f394

Please sign in to comment.