diff --git a/ParanoidGlyph/src/co/aospa/glyph/Manager/AnimationManager.java b/ParanoidGlyph/src/co/aospa/glyph/Manager/AnimationManager.java index 38e39ca..f6d3648 100644 --- a/ParanoidGlyph/src/co/aospa/glyph/Manager/AnimationManager.java +++ b/ParanoidGlyph/src/co/aospa/glyph/Manager/AnimationManager.java @@ -104,6 +104,7 @@ public final class AnimationManager { String line; while ((line = reader.readLine()) != null) { if (checkInterruption("csv")) throw new InterruptedException(); + line = line.replace(" ", ""); line = line.endsWith(",") ? line.substring(0, line.length() - 1) : line; String[] pattern = line.split(","); if (ArrayUtils.contains(Constants.getSupportedAnimationPatternLengths(), pattern.length)) { @@ -260,6 +261,7 @@ public final class AnimationManager { String line; while ((line = reader.readLine()) != null) { if (checkInterruption("call")) throw new InterruptedException(); + line = line.replace(" ", ""); line = line.endsWith(",") ? line.substring(0, line.length() - 1) : line; String[] pattern = line.split(","); if (ArrayUtils.contains(Constants.getSupportedAnimationPatternLengths(), pattern.length)) { diff --git a/ParanoidGlyph/src/co/aospa/glyph/Preference/GlyphAnimationPreference.java b/ParanoidGlyph/src/co/aospa/glyph/Preference/GlyphAnimationPreference.java index 299483c..827841a 100644 --- a/ParanoidGlyph/src/co/aospa/glyph/Preference/GlyphAnimationPreference.java +++ b/ParanoidGlyph/src/co/aospa/glyph/Preference/GlyphAnimationPreference.java @@ -164,6 +164,7 @@ public class GlyphAnimationPreference extends Preference { String line; while ((line = reader.readLine()) != null) { long start = System.currentTimeMillis(); + line = line.replace(" ", ""); line = line.endsWith(",") ? line.substring(0, line.length() - 1) : line; String[] split = line.split(","); if (Constants.getDevice().equals("phone1") && split.length == 5) { // Phone (1) pattern on Phone (1)