mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
18 lines
739 B
Java
18 lines
739 B
Java
|
package com.google.zxing.client.result;
|
||
|
|
||
|
import com.google.zxing.Result;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class TelResultParser extends ResultParser {
|
||
|
@Override // com.google.zxing.client.result.ResultParser
|
||
|
public TelParsedResult parse(Result result) {
|
||
|
String massagedText = getMassagedText(result);
|
||
|
if (!massagedText.startsWith("tel:") && !massagedText.startsWith("TEL:")) {
|
||
|
return null;
|
||
|
}
|
||
|
String str = massagedText.startsWith("TEL:") ? "tel:" + massagedText.substring(4) : massagedText;
|
||
|
int indexOf = massagedText.indexOf(63, 4);
|
||
|
return new TelParsedResult(indexOf < 0 ? massagedText.substring(4) : massagedText.substring(4, indexOf), str, null);
|
||
|
}
|
||
|
}
|