ParanoidGlyph: Improve pattern whitespace handling
Required after :-
d285a9aa0b
Change-Id: Ie0a101abc364199eead9438c9afc87cb7006e9ff
This commit is contained in:
committed by
Wiktor Rudzki
parent
7e03aac414
commit
d3a04c4850
@@ -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)) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user