|
|
|
|
@ -70,6 +70,11 @@ public class CustomWallView extends FrameLayout implements DefaultLifecycleObser |
|
|
|
|
if (event.getType() == RefreshEvent.Type.WALL) refresh(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refresh() { |
|
|
|
|
stop(); |
|
|
|
|
load(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void stop() { |
|
|
|
|
if (player.isPlaying()) { |
|
|
|
|
player.stop(); |
|
|
|
|
@ -85,11 +90,6 @@ public class CustomWallView extends FrameLayout implements DefaultLifecycleObser |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refresh() { |
|
|
|
|
stop(); |
|
|
|
|
load(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void load() { |
|
|
|
|
File file = FileUtil.getWall(Setting.getWall()); |
|
|
|
|
cache = Drawable.createFromPath(FileUtil.getWallCache().getAbsolutePath()); |
|
|
|
|
|