Skip to content

Commit

Permalink
Fix Typos in LottieAnimationView (airbnb#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerbwong authored and gpeal committed Sep 9, 2018
1 parent 074176b commit 4a6840b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lottie/src/main/java/com/airbnb/lottie/LottieAnimationView.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* <p>
* You may set the animation in one of two ways:
* 1) Attrs: {@link R.styleable#LottieAnimationView_lottie_fileName}
* 2) Programatically: {@link #setAnimation(String)}, {@link #setComposition(LottieComposition)},
* 2) Programmatically: {@link #setAnimation(String)}, {@link #setComposition(LottieComposition)},
* or {@link #setAnimation(JsonReader)}.
* <p>
* You can set a default cache strategy with {@link R.attr#lottie_cacheStrategy}.
Expand Down Expand Up @@ -119,7 +119,7 @@ private void init(@Nullable AttributeSet attrs) {
boolean hasUrl = ta.hasValue(R.styleable.LottieAnimationView_lottie_url);
if (hasRawRes && hasFileName) {
throw new IllegalArgumentException("lottie_rawRes and lottie_fileName cannot be used at " +
"the same time. Please use use only one at once.");
"the same time. Please use only one at once.");
} else if (hasRawRes) {
int rawResId = ta.getResourceId(R.styleable.LottieAnimationView_lottie_rawRes, 0);
if (rawResId != 0) {
Expand Down Expand Up @@ -427,7 +427,7 @@ public void setAnimationFromJson(String jsonString) {

/**
* Sets the animation from json string. This is the ideal API to use when loading an animation
* over the network because you can use the raw response body here and a converstion to a
* over the network because you can use the raw response body here and a conversion to a
* JSONObject never has to be done.
*/
public void setAnimationFromJson(String jsonString, @Nullable String cacheKey) {
Expand Down Expand Up @@ -458,7 +458,7 @@ public void setAnimation(JsonReader reader, @Nullable String cacheKey) {
}

/**
* Load a lottie animation from a url. The url can be a json file or a zip file. Use a zip file if you have images. Simply zip them togethre and lottie
* Load a lottie animation from a url. The url can be a json file or a zip file. Use a zip file if you have images. Simply zip them together and lottie
* will unzip and link the images automatically.
*
* Under the hood, Lottie uses Java HttpURLConnection because it doesn't require any transitive networking dependencies. It will download the file
Expand Down Expand Up @@ -782,7 +782,7 @@ public void setTextDelegate(TextDelegate textDelegate) {
* Takes a {@link KeyPath}, potentially with wildcards or globstars and resolve it to a list of
* zero or more actual {@link KeyPath Keypaths} that exist in the current animation.
*
* If you want to set value callbacks for any of these values, it is recommend to use the
* If you want to set value callbacks for any of these values, it is recommended to use the
* returned {@link KeyPath} objects because they will be internally resolved to their content
* and won't trigger a tree walk of the animation contents when applied.
*/
Expand All @@ -791,8 +791,8 @@ public List<KeyPath> resolveKeyPath(KeyPath keyPath) {
}

/**
* Add an property callback for the specified {@link KeyPath}. This {@link KeyPath} can resolve
* to multiple contents. In that case, the callbacks's value will apply to all of them.
* Add a property callback for the specified {@link KeyPath}. This {@link KeyPath} can resolve
* to multiple contents. In that case, the callback's value will apply to all of them.
*
* Internally, this will check if the {@link KeyPath} has already been resolved with
* {@link #resolveKeyPath(KeyPath)} and will resolve it if it hasn't.
Expand Down

0 comments on commit 4a6840b

Please sign in to comment.