Added lead enum to android.

This commit is contained in:
VladiMihaylenko 2017-05-12 20:28:09 +03:00 committed by r.kuznetsov
parent cdf8dd1e4c
commit f83df09f10
2 changed files with 4 additions and 1 deletions

View file

@ -1454,6 +1454,8 @@ public class MwmActivity extends BaseMwmFragmentActivity
case ParsedUrlMwmRequest.RESULT_SEARCH:
final ParsedSearchRequest request = Framework.nativeGetParsedSearchRequest();
return true;
case ParsedUrlMwmRequest.RESULT_LEAD:
return true;
}
return false;

View file

@ -11,13 +11,14 @@ import java.lang.annotation.RetentionPolicy;
public class ParsedUrlMwmRequest
{
@Retention(RetentionPolicy.SOURCE)
@IntDef({RESULT_INCORRECT, RESULT_MAP, RESULT_ROUTE, RESULT_SEARCH})
@IntDef({RESULT_INCORRECT, RESULT_MAP, RESULT_ROUTE, RESULT_SEARCH, RESULT_LEAD})
public @interface ParsingResult {}
public static final int RESULT_INCORRECT = 0;
public static final int RESULT_MAP = 1;
public static final int RESULT_ROUTE = 2;
public static final int RESULT_SEARCH = 3;
public static final int RESULT_LEAD = 4;
public final RoutePoint[] mRoutePoints;
public final String mGlobalUrl;