Merge "Fix a random assortment of spelling errors."
diff --git a/core-ui/java/android/support/v4/view/NestedScrollingChildHelper.java b/core-ui/java/android/support/v4/view/NestedScrollingChildHelper.java
index 745eafd..b79f533 100644
--- a/core-ui/java/android/support/v4/view/NestedScrollingChildHelper.java
+++ b/core-ui/java/android/support/v4/view/NestedScrollingChildHelper.java
@@ -26,7 +26,7 @@
*
* <p>{@link android.view.View View} subclasses should instantiate a final instance of this
* class as a field at construction. For each <code>View</code> method that has a matching
- * method signature in this class, delegate the operation to the helper instance in an overriden
+ * method signature in this class, delegate the operation to the helper instance in an overridden
* method implementation. This implements the standard framework policy for nested scrolling.</p>
*
* <p>Views invoking nested scrolling functionality should always do so from the relevant
diff --git a/core-ui/java/android/support/v4/view/NestedScrollingParentHelper.java b/core-ui/java/android/support/v4/view/NestedScrollingParentHelper.java
index 75936e9..d76aff7 100644
--- a/core-ui/java/android/support/v4/view/NestedScrollingParentHelper.java
+++ b/core-ui/java/android/support/v4/view/NestedScrollingParentHelper.java
@@ -27,7 +27,7 @@
* <p>{@link android.view.ViewGroup ViewGroup} subclasses should instantiate a final instance
* of this class as a field at construction. For each <code>ViewGroup</code> method that has
* a matching method signature in this class, delegate the operation to the helper instance
- * in an overriden method implementation. This implements the standard framework policy
+ * in an overridden method implementation. This implements the standard framework policy
* for nested scrolling.</p>
*
* <p>Views invoking nested scrolling functionality should always do so from the relevant
diff --git a/core-ui/java/android/support/v4/widget/CursorAdapter.java b/core-ui/java/android/support/v4/widget/CursorAdapter.java
index 7635a90..7476413 100644
--- a/core-ui/java/android/support/v4/widget/CursorAdapter.java
+++ b/core-ui/java/android/support/v4/widget/CursorAdapter.java
@@ -330,7 +330,7 @@
* closed.
*
* @param newCursor The new cursor to be used.
- * @return Returns the previously set Cursor, or null if there wasa not one.
+ * @return Returns the previously set Cursor, or null if there was not one.
* If the given new Cursor is the same instance is the previously set
* Cursor, null is also returned.
*/
diff --git a/design/src/android/support/design/widget/AppBarLayout.java b/design/src/android/support/design/widget/AppBarLayout.java
index 1f24ba6..3cea8d4 100644
--- a/design/src/android/support/design/widget/AppBarLayout.java
+++ b/design/src/android/support/design/widget/AppBarLayout.java
@@ -513,7 +513,7 @@
/**
* @deprecated target elevation is now deprecated. AppBarLayout's elevation is now
* controlled via a {@link android.animation.StateListAnimator}. If a target
- * elevation is set, either by this method or the {@code app:elevation} attibute,
+ * elevation is set, either by this method or the {@code app:elevation} attribute,
* a new state list animator is created which uses the given {@code elevation} value.
*
* @attr ref android.support.design.R.styleable#AppBarLayout_elevation
@@ -855,7 +855,7 @@
0, -velocityY);
} else {
// If we're scrolling up and the child also consumed the fling. We'll fake scroll
- // upto our 'collapsed' offset
+ // up to our 'collapsed' offset
if (velocityY < 0) {
// We're scrolling down
final int targetScroll = -child.getTotalScrollRange()
@@ -1245,9 +1245,9 @@
if (child.getTop() + offset <= 0 && visBottom >= 0) {
final SavedState ss = new SavedState(superState);
ss.firstVisibleChildIndex = i;
- ss.firstVisibileChildAtMinimumHeight =
+ ss.firstVisibleChildAtMinimumHeight =
visBottom == ViewCompat.getMinimumHeight(child);
- ss.firstVisibileChildPercentageShown = visBottom / (float) child.getHeight();
+ ss.firstVisibleChildPercentageShown = visBottom / (float) child.getHeight();
return ss;
}
}
@@ -1263,8 +1263,8 @@
final SavedState ss = (SavedState) state;
super.onRestoreInstanceState(parent, appBarLayout, ss.getSuperState());
mOffsetToChildIndexOnLayout = ss.firstVisibleChildIndex;
- mOffsetToChildIndexOnLayoutPerc = ss.firstVisibileChildPercentageShown;
- mOffsetToChildIndexOnLayoutIsMinHeight = ss.firstVisibileChildAtMinimumHeight;
+ mOffsetToChildIndexOnLayoutPerc = ss.firstVisibleChildPercentageShown;
+ mOffsetToChildIndexOnLayoutIsMinHeight = ss.firstVisibleChildAtMinimumHeight;
} else {
super.onRestoreInstanceState(parent, appBarLayout, state);
mOffsetToChildIndexOnLayout = INVALID_POSITION;
@@ -1273,14 +1273,14 @@
protected static class SavedState extends AbsSavedState {
int firstVisibleChildIndex;
- float firstVisibileChildPercentageShown;
- boolean firstVisibileChildAtMinimumHeight;
+ float firstVisibleChildPercentageShown;
+ boolean firstVisibleChildAtMinimumHeight;
public SavedState(Parcel source, ClassLoader loader) {
super(source, loader);
firstVisibleChildIndex = source.readInt();
- firstVisibileChildPercentageShown = source.readFloat();
- firstVisibileChildAtMinimumHeight = source.readByte() != 0;
+ firstVisibleChildPercentageShown = source.readFloat();
+ firstVisibleChildAtMinimumHeight = source.readByte() != 0;
}
public SavedState(Parcelable superState) {
@@ -1291,8 +1291,8 @@
public void writeToParcel(Parcel dest, int flags) {
super.writeToParcel(dest, flags);
dest.writeInt(firstVisibleChildIndex);
- dest.writeFloat(firstVisibileChildPercentageShown);
- dest.writeByte((byte) (firstVisibileChildAtMinimumHeight ? 1 : 0));
+ dest.writeFloat(firstVisibleChildPercentageShown);
+ dest.writeByte((byte) (firstVisibleChildAtMinimumHeight ? 1 : 0));
}
public static final Parcelable.Creator<SavedState> CREATOR =
diff --git a/design/src/android/support/design/widget/CollapsingTextHelper.java b/design/src/android/support/design/widget/CollapsingTextHelper.java
index 4a95a13..4ddbd1d 100644
--- a/design/src/android/support/design/widget/CollapsingTextHelper.java
+++ b/design/src/android/support/design/widget/CollapsingTextHelper.java
@@ -458,7 +458,7 @@
}
if (DEBUG_DRAW) {
- // Just a debug tool, which drawn a Magneta rect in the text bounds
+ // Just a debug tool, which drawn a magenta rect in the text bounds
canvas.drawRect(mCurrentBounds.left, y + ascent, mCurrentBounds.right, y + descent,
DEBUG_DRAW_PAINT);
}
diff --git a/design/src/android/support/design/widget/CollapsingToolbarLayout.java b/design/src/android/support/design/widget/CollapsingToolbarLayout.java
index 2181a1c..dd29e95 100644
--- a/design/src/android/support/design/widget/CollapsingToolbarLayout.java
+++ b/design/src/android/support/design/widget/CollapsingToolbarLayout.java
@@ -996,7 +996,7 @@
public void setScrimVisibleHeightTrigger(@IntRange(from = 0) final int height) {
if (mScrimVisibleHeightTrigger != height) {
mScrimVisibleHeightTrigger = height;
- // Update the scrim visibilty
+ // Update the scrim visibility
updateScrimVisibility();
}
}
@@ -1009,7 +1009,7 @@
*/
public int getScrimVisibleHeightTrigger() {
if (mScrimVisibleHeightTrigger >= 0) {
- // If we have one explictly set, return it
+ // If we have one explicitly set, return it
return mScrimVisibleHeightTrigger;
}
diff --git a/design/src/android/support/design/widget/TextInputLayout.java b/design/src/android/support/design/widget/TextInputLayout.java
index 2bb959c..a38bb73 100644
--- a/design/src/android/support/design/widget/TextInputLayout.java
+++ b/design/src/android/support/design/widget/TextInputLayout.java
@@ -768,7 +768,7 @@
if (!mHasReconstructedEditTextBackground) {
// This is gross. There is an issue in the platform which affects container Drawables
- // where the first drawable retrieved from resources will propogate any changes
+ // where the first drawable retrieved from resources will propagate any changes
// (like color filter) to all instances from the cache. We'll try to workaround it...
final Drawable newBg = bg.getConstantState().newDrawable();
diff --git a/fragment/java/android/support/v4/app/DialogFragment.java b/fragment/java/android/support/v4/app/DialogFragment.java
index 598a1c9..b3a4f87 100644
--- a/fragment/java/android/support/v4/app/DialogFragment.java
+++ b/fragment/java/android/support/v4/app/DialogFragment.java
@@ -247,7 +247,7 @@
* initialized to false; otherwise, it will be true.
*
* @param showsDialog If true, the fragment will be displayed in a Dialog.
- * If false, no Dialog will be created and the fragment's view hierarchly
+ * If false, no Dialog will be created and the fragment's view hierarchy
* left undisturbed.
*/
public void setShowsDialog(boolean showsDialog) {
diff --git a/fragment/java/android/support/v4/app/FragmentHostCallback.java b/fragment/java/android/support/v4/app/FragmentHostCallback.java
index 6a91a3a..75fde03 100644
--- a/fragment/java/android/support/v4/app/FragmentHostCallback.java
+++ b/fragment/java/android/support/v4/app/FragmentHostCallback.java
@@ -157,7 +157,7 @@
}
/**
- * Checks wehter to show permission rationale UI from a fragment.
+ * Checks whether to show permission rationale UI from a fragment.
* See {@link FragmentActivity#shouldShowRequestPermissionRationale(String)}
*/
public boolean onShouldShowRequestPermissionRationale(@NonNull String permission) {
diff --git a/fragment/java/android/support/v4/app/FragmentManager.java b/fragment/java/android/support/v4/app/FragmentManager.java
index c565043..6f251e7 100644
--- a/fragment/java/android/support/v4/app/FragmentManager.java
+++ b/fragment/java/android/support/v4/app/FragmentManager.java
@@ -429,7 +429,7 @@
static final String USER_VISIBLE_HINT_TAG = "android:user_visible_hint";
static class AnimateOnHWLayerIfNeededListener implements AnimationListener {
- private AnimationListener mOrignalListener;
+ private AnimationListener mOriginalListener;
private boolean mShouldRunOnHWLayer;
private View mView;
@@ -445,7 +445,7 @@
if (v == null || anim == null) {
return;
}
- mOrignalListener = listener;
+ mOriginalListener = listener;
mView = v;
mShouldRunOnHWLayer = true;
}
@@ -453,8 +453,8 @@
@Override
@CallSuper
public void onAnimationStart(Animation animation) {
- if (mOrignalListener != null) {
- mOrignalListener.onAnimationStart(animation);
+ if (mOriginalListener != null) {
+ mOriginalListener.onAnimationStart(animation);
}
}
@@ -483,15 +483,15 @@
ViewCompat.setLayerType(mView, ViewCompat.LAYER_TYPE_NONE, null);
}
}
- if (mOrignalListener != null) {
- mOrignalListener.onAnimationEnd(animation);
+ if (mOriginalListener != null) {
+ mOriginalListener.onAnimationEnd(animation);
}
}
@Override
public void onAnimationRepeat(Animation animation) {
- if (mOrignalListener != null) {
- mOrignalListener.onAnimationRepeat(animation);
+ if (mOriginalListener != null) {
+ mOriginalListener.onAnimationRepeat(animation);
}
}
}
diff --git a/fragment/java/android/support/v4/app/FragmentTabHost.java b/fragment/java/android/support/v4/app/FragmentTabHost.java
index a6d2ed7..7ec9da4 100644
--- a/fragment/java/android/support/v4/app/FragmentTabHost.java
+++ b/fragment/java/android/support/v4/app/FragmentTabHost.java
@@ -204,7 +204,7 @@
mRealTabContent.setId(containerId);
// We must have an ID to be able to save/restore our state. If
- // the owner hasn't set one at this point, we will set it ourself.
+ // the owner hasn't set one at this point, we will set it ourselves.
if (getId() == View.NO_ID) {
setId(android.R.id.tabhost);
}
diff --git a/fragment/java/android/support/v4/app/FragmentTransaction.java b/fragment/java/android/support/v4/app/FragmentTransaction.java
index 4dbc791..cea0282 100644
--- a/fragment/java/android/support/v4/app/FragmentTransaction.java
+++ b/fragment/java/android/support/v4/app/FragmentTransaction.java
@@ -134,7 +134,7 @@
public abstract FragmentTransaction detach(Fragment fragment);
/**
- * Re-attach a fragment after it had previously been deatched from
+ * Re-attach a fragment after it had previously been detached from
* the UI with {@link #detach(Fragment)}. This
* causes its view hierarchy to be re-created, attached to the UI,
* and displayed.
diff --git a/fragment/java/android/support/v4/app/LoaderManager.java b/fragment/java/android/support/v4/app/LoaderManager.java
index 1f1144e..634a6bc 100644
--- a/fragment/java/android/support/v4/app/LoaderManager.java
+++ b/fragment/java/android/support/v4/app/LoaderManager.java
@@ -350,7 +350,7 @@
boolean needReset = mDeliveredData;
mDeliveredData = false;
if (mCallbacks != null && mLoader != null && mHaveData && needReset) {
- if (DEBUG) Log.v(TAG, " Reseting: " + this);
+ if (DEBUG) Log.v(TAG, " Resetting: " + this);
String lastBecause = null;
if (mHost != null) {
lastBecause = mHost.mFragmentManager.mNoTransactionsBecause;
@@ -560,7 +560,7 @@
mLoaders.put(info.mId, info);
if (mStarted) {
// The activity will start all existing loaders in it's onStart(),
- // so only start them here if we're past that point of the activitiy's
+ // so only start them here if we're past that point of the activity's
// life cycle
info.start();
}
diff --git a/graphics/drawable/static/src/android/support/graphics/drawable/VectorDrawableCompat.java b/graphics/drawable/static/src/android/support/graphics/drawable/VectorDrawableCompat.java
index 75d0312..0e63713 100644
--- a/graphics/drawable/static/src/android/support/graphics/drawable/VectorDrawableCompat.java
+++ b/graphics/drawable/static/src/android/support/graphics/drawable/VectorDrawableCompat.java
@@ -996,7 +996,7 @@
}
public void draw(Canvas canvas, int w, int h, ColorFilter filter) {
- // Travese the tree in pre-order to draw.
+ // Traverse the tree in pre-order to draw.
drawGroupTree(mRootGroup, IDENTITY_MATRIX, canvas, w, h, filter);
}
diff --git a/v13/java/android/support/v13/app/FragmentTabHost.java b/v13/java/android/support/v13/app/FragmentTabHost.java
index 9ca61ab..e4578b4 100644
--- a/v13/java/android/support/v13/app/FragmentTabHost.java
+++ b/v13/java/android/support/v13/app/FragmentTabHost.java
@@ -196,7 +196,7 @@
mRealTabContent.setId(containerId);
// We must have an ID to be able to save/restore our state. If
- // the owner hasn't set one at this point, we will set it ourself.
+ // the owner hasn't set one at this point, we will set it ourselves.
if (getId() == View.NO_ID) {
setId(android.R.id.tabhost);
}
diff --git a/v17/leanback/src/android/support/v17/leanback/app/BrowseFragment.java b/v17/leanback/src/android/support/v17/leanback/app/BrowseFragment.java
index 913a6b3..b878994 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/BrowseFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/BrowseFragment.java
@@ -129,8 +129,8 @@
// if popped "headers" backstack, initiate the show header transition if needed
if (mIndexOfHeadersBackStack >= count) {
if (!isHeadersDataReady()) {
- // if main fragment was restored first before BrowseFragment's adapater gets
- // restored: dont start header transition, but add the entry back.
+ // if main fragment was restored first before BrowseFragment's adapter gets
+ // restored: don't start header transition, but add the entry back.
getFragmentManager().beginTransaction()
.addToBackStack(mWithHeadersBackStackName).commit();
return;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/BrowseSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/BrowseSupportFragment.java
index bfea088..c4ba0c7 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/BrowseSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/BrowseSupportFragment.java
@@ -131,8 +131,9 @@
// if popped "headers" backstack, initiate the show header transition if needed
if (mIndexOfHeadersBackStack >= count) {
if (!isHeadersDataReady()) {
- // if main fragment was restored first before BrowseSupportFragment's adapater gets
- // restored: dont start header transition, but add the entry back.
+ // if main fragment was restored first before BrowseSupportFragment's
+ // adapter gets restored: don't start header transition, but add the entry
+ // back.
getFragmentManager().beginTransaction()
.addToBackStack(mWithHeadersBackStackName).commit();
return;
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java
index a19eccc..1875683 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsFragment.java
@@ -238,7 +238,7 @@
/**
* Called to setup {@link FullWidthDetailsOverviewRowPresenter}. The default implementation
- * adds two aligment positions({@link ItemAlignmentFacet}) for ViewHolder of
+ * adds two alignment positions({@link ItemAlignmentFacet}) for ViewHolder of
* FullWidthDetailsOverviewRowPresenter to align in fragment.
*/
protected void setupDetailsOverviewRowPresenter(FullWidthDetailsOverviewRowPresenter presenter) {
diff --git a/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java
index c4f9bc3..8f69db2 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/DetailsSupportFragment.java
@@ -240,7 +240,7 @@
/**
* Called to setup {@link FullWidthDetailsOverviewRowPresenter}. The default implementation
- * adds two aligment positions({@link ItemAlignmentFacet}) for ViewHolder of
+ * adds two alignment positions({@link ItemAlignmentFacet}) for ViewHolder of
* FullWidthDetailsOverviewRowPresenter to align in fragment.
*/
protected void setupDetailsOverviewRowPresenter(FullWidthDetailsOverviewRowPresenter presenter) {
diff --git a/v17/leanback/src/android/support/v17/leanback/app/GuidedStepFragment.java b/v17/leanback/src/android/support/v17/leanback/app/GuidedStepFragment.java
index 0706be5..e00b9f6 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/GuidedStepFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/GuidedStepFragment.java
@@ -103,7 +103,7 @@
* </ul>
* <p>
* If the theme is provided in multiple ways, the onProvideTheme override has priority, followed by
- * the Activty's theme. (Themes whose parent theme is already set to the guided step theme do not
+ * the Activity's theme. (Themes whose parent theme is already set to the guided step theme do not
* need to set the guidedStepTheme attribute; if set, it will be ignored.)
* <p>
* If themes do not provide enough customizability, the stylists themselves may be subclassed and
@@ -885,7 +885,7 @@
// No shared element transition
TransitionHelper.setSharedElementEnterTransition(this, null);
} else if (uiStyle == UI_STYLE_ACTIVITY_ROOT) {
- // for Activity root, we dont need enter transition, use activity transition
+ // for Activity root, we don't need enter transition, use activity transition
TransitionHelper.setEnterTransition(this, null);
// No shared element transition
TransitionHelper.setSharedElementEnterTransition(this, null);
@@ -1094,7 +1094,7 @@
}
mButtonActionsStylist.getActionsGridView().setAdapter(mButtonAdapter);
if (mButtonActions.size() == 0) {
- // when there is no button actions, we dont need show the second panel, but keep
+ // when there is no button actions, we don't need show the second panel, but keep
// the width zero to run ChangeBounds transition.
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams)
buttonActionsView.getLayoutParams();
@@ -1293,12 +1293,12 @@
* Currently we provide 2 different variations for animation - slide in from
* side (default) or bottom.
*
- * Ideally we can retireve the screen mode settings from the theme attribute
+ * Ideally we can retrieve the screen mode settings from the theme attribute
* {@code Theme.Leanback.GuidedStep#guidedStepHeightWeight} and use that to
* determine the transition. But the fragment context to retrieve the theme
* isn't available on platform v23 or earlier.
*
- * For now clients(subclasses) can call this method inside the contructor.
+ * For now clients(subclasses) can call this method inside the constructor.
* @hide
*/
public void setEntranceTransitionType(int transitionType) {
diff --git a/v17/leanback/src/android/support/v17/leanback/app/GuidedStepSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/GuidedStepSupportFragment.java
index b20dfbb..d3d7939 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/GuidedStepSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/GuidedStepSupportFragment.java
@@ -105,7 +105,7 @@
* </ul>
* <p>
* If the theme is provided in multiple ways, the onProvideTheme override has priority, followed by
- * the Activty's theme. (Themes whose parent theme is already set to the guided step theme do not
+ * the Activity's theme. (Themes whose parent theme is already set to the guided step theme do not
* need to set the guidedStepTheme attribute; if set, it will be ignored.)
* <p>
* If themes do not provide enough customizability, the stylists themselves may be subclassed and
@@ -887,7 +887,7 @@
// No shared element transition
TransitionHelper.setSharedElementEnterTransition(this, null);
} else if (uiStyle == UI_STYLE_ACTIVITY_ROOT) {
- // for Activity root, we dont need enter transition, use activity transition
+ // for Activity root, we don't need enter transition, use activity transition
TransitionHelper.setEnterTransition(this, null);
// No shared element transition
TransitionHelper.setSharedElementEnterTransition(this, null);
@@ -1096,7 +1096,7 @@
}
mButtonActionsStylist.getActionsGridView().setAdapter(mButtonAdapter);
if (mButtonActions.size() == 0) {
- // when there is no button actions, we dont need show the second panel, but keep
+ // when there is no button actions, we don't need show the second panel, but keep
// the width zero to run ChangeBounds transition.
LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams)
buttonActionsView.getLayoutParams();
@@ -1295,12 +1295,12 @@
* Currently we provide 2 different variations for animation - slide in from
* side (default) or bottom.
*
- * Ideally we can retireve the screen mode settings from the theme attribute
+ * Ideally we can retrieve the screen mode settings from the theme attribute
* {@code Theme.Leanback.GuidedStep#guidedStepHeightWeight} and use that to
* determine the transition. But the fragment context to retrieve the theme
* isn't available on platform v23 or earlier.
*
- * For now clients(subclasses) can call this method inside the contructor.
+ * For now clients(subclasses) can call this method inside the constructor.
* @hide
*/
public void setEntranceTransitionType(int transitionType) {
diff --git a/v17/leanback/src/android/support/v17/leanback/app/HeadersFragment.java b/v17/leanback/src/android/support/v17/leanback/app/HeadersFragment.java
index d09fc01..d3e76a5 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/HeadersFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/HeadersFragment.java
@@ -213,7 +213,7 @@
}
// Wrapper needed because of conflict between RecyclerView's use of alpha
- // for ADD animations, and RowHeaderPresnter's use of alpha for selected level.
+ // for ADD animations, and RowHeaderPresenter's use of alpha for selected level.
private final ItemBridgeAdapter.Wrapper mWrapper = new ItemBridgeAdapter.Wrapper() {
@Override
public void wrap(View wrapper, View wrapped) {
@@ -263,7 +263,7 @@
super.onTransitionStart();
if (!mHeadersEnabled) {
// When enabling headers fragment, the RowHeaderView gets a focus but
- // isShown() is still false because its parent is INVSIBILE, accessibility
+ // isShown() is still false because its parent is INVISIBLE, accessibility
// event is not sent.
// Workaround is: prevent focus to a child view during transition and put
// focus on it after transition is done.
diff --git a/v17/leanback/src/android/support/v17/leanback/app/HeadersSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/HeadersSupportFragment.java
index a6d598b..9e01e70 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/HeadersSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/HeadersSupportFragment.java
@@ -215,7 +215,7 @@
}
// Wrapper needed because of conflict between RecyclerView's use of alpha
- // for ADD animations, and RowHeaderPresnter's use of alpha for selected level.
+ // for ADD animations, and RowHeaderPresenter's use of alpha for selected level.
private final ItemBridgeAdapter.Wrapper mWrapper = new ItemBridgeAdapter.Wrapper() {
@Override
public void wrap(View wrapper, View wrapped) {
@@ -265,7 +265,7 @@
super.onTransitionStart();
if (!mHeadersEnabled) {
// When enabling headers fragment, the RowHeaderView gets a focus but
- // isShown() is still false because its parent is INVSIBILE, accessibility
+ // isShown() is still false because its parent is INVISIBLE, accessibility
// event is not sent.
// Workaround is: prevent focus to a child view during transition and put
// focus on it after transition is done.
diff --git a/v17/leanback/src/android/support/v17/leanback/app/SearchFragment.java b/v17/leanback/src/android/support/v17/leanback/app/SearchFragment.java
index 90b597a..01ba0bf 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/SearchFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/SearchFragment.java
@@ -142,7 +142,7 @@
mRowsFragment.setSelectedPosition(0);
}
}
- updateSearchBarVisiblity();
+ updateSearchBarVisibility();
mStatus |= RESULTS_CHANGED;
if ((mStatus & QUERY_COMPLETE) != 0) {
updateFocus();
@@ -342,7 +342,7 @@
int position = mRowsFragment.getSelectedPosition();
Log.v(TAG, String.format("onItemSelected %d", position));
}
- updateSearchBarVisiblity();
+ updateSearchBarVisibility();
if (null != mOnItemViewSelectedListener) {
mOnItemViewSelectedListener.onItemSelected(itemViewHolder, item,
rowViewHolder, row);
@@ -633,7 +633,7 @@
focusOnResults();
}
- private void updateSearchBarVisiblity() {
+ private void updateSearchBarVisibility() {
int position = mRowsFragment != null ? mRowsFragment.getSelectedPosition() : -1;
mSearchBar.setVisibility(position <=0 || mResultAdapter == null
|| mResultAdapter.size() == 0 ? View.VISIBLE : View.GONE);
diff --git a/v17/leanback/src/android/support/v17/leanback/app/SearchSupportFragment.java b/v17/leanback/src/android/support/v17/leanback/app/SearchSupportFragment.java
index 2e8dda6..af2c1b6 100644
--- a/v17/leanback/src/android/support/v17/leanback/app/SearchSupportFragment.java
+++ b/v17/leanback/src/android/support/v17/leanback/app/SearchSupportFragment.java
@@ -144,7 +144,7 @@
mRowsSupportFragment.setSelectedPosition(0);
}
}
- updateSearchBarVisiblity();
+ updateSearchBarVisibility();
mStatus |= RESULTS_CHANGED;
if ((mStatus & QUERY_COMPLETE) != 0) {
updateFocus();
@@ -345,7 +345,7 @@
int position = mRowsSupportFragment.getSelectedPosition();
Log.v(TAG, String.format("onItemSelected %d", position));
}
- updateSearchBarVisiblity();
+ updateSearchBarVisibility();
if (null != mOnItemViewSelectedListener) {
mOnItemViewSelectedListener.onItemSelected(itemViewHolder, item,
rowViewHolder, row);
@@ -636,7 +636,7 @@
focusOnResults();
}
- private void updateSearchBarVisiblity() {
+ private void updateSearchBarVisibility() {
int position = mRowsSupportFragment != null ? mRowsSupportFragment.getSelectedPosition() : -1;
mSearchBar.setVisibility(position <=0 || mResultAdapter == null
|| mResultAdapter.size() == 0 ? View.VISIBLE : View.GONE);
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/DetailsOverviewLogoPresenter.java b/v17/leanback/src/android/support/v17/leanback/widget/DetailsOverviewLogoPresenter.java
index a9e0d7a..6ae9995 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/DetailsOverviewLogoPresenter.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/DetailsOverviewLogoPresenter.java
@@ -128,7 +128,7 @@
}
/**
- * Bind logo View to drawble of DetailsOverviewRow and call notifyOnBindLogo(). The
+ * Bind logo View to drawable of DetailsOverviewRow and call notifyOnBindLogo(). The
* default implementation assumes the Logo View is an ImageView and change layout size to
* intrinsic size of ImageDrawable if {@link ViewHolder#isSizeFromDrawableIntrinsic()} is true.
* @param viewHolder ViewHolder to bind.
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/Grid.java b/v17/leanback/src/android/support/v17/leanback/widget/Grid.java
index ff09d7c..d84adcd 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/Grid.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/Grid.java
@@ -14,7 +14,6 @@
package android.support.v17.leanback.widget;
import android.support.v4.util.CircularIntArray;
-import android.util.Log;
import java.io.PrintWriter;
@@ -238,7 +237,7 @@
mProvider.removeItem(mLastVisibleIndex);
mLastVisibleIndex--;
}
- resetVisbileIndexIfEmpty();
+ resetVisibleIndexIfEmpty();
if (getFirstVisibleIndex() < 0) {
setStart(index);
}
@@ -395,7 +394,7 @@
break;
}
}
- resetVisbileIndexIfEmpty();
+ resetVisibleIndexIfEmpty();
}
/**
@@ -414,10 +413,10 @@
break;
}
}
- resetVisbileIndexIfEmpty();
+ resetVisibleIndexIfEmpty();
}
- private void resetVisbileIndexIfEmpty() {
+ private void resetVisibleIndexIfEmpty() {
if (mLastVisibleIndex < mFirstVisibleIndex) {
resetVisibleIndex();
}
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/GridLayoutManager.java b/v17/leanback/src/android/support/v17/leanback/widget/GridLayoutManager.java
index 5e3e74c..ec7c6f7 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/GridLayoutManager.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/GridLayoutManager.java
@@ -440,7 +440,7 @@
private int mFocusPosition = NO_POSITION;
/**
- * A view can have mutliple alignment position, this is the index of which
+ * A view can have multiple alignment position, this is the index of which
* alignment is used, by default is 0.
*/
private int mSubFocusPosition = 0;
@@ -3139,8 +3139,8 @@
}
}
- void setChildrenVisibility(int visiblity) {
- mChildVisibility = visiblity;
+ void setChildrenVisibility(int visibility) {
+ mChildVisibility = visibility;
if (mChildVisibility != -1) {
int count = getChildCount();
for (int i= 0; i < count; i++) {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java b/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java
index 2a39323..22ac504 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/GuidedAction.java
@@ -530,13 +530,13 @@
/**
* Explicitly sets auto restore feature on the GuidedAction. It's by default true.
- * @param autoSaveRestoreEnanbled True if turn on auto save/restore of GuidedAction content,
+ * @param autoSaveRestoreEnabled True if turn on auto save/restore of GuidedAction content,
* false otherwise.
* @return The same BuilderBase object.
* @see GuidedAction#isAutoSaveRestoreEnabled()
*/
- public B autoSaveRestoreEnabled(boolean autoSaveRestoreEnanbled) {
- setFlags(autoSaveRestoreEnanbled ? PF_AUTORESTORE : 0, PF_AUTORESTORE);
+ public B autoSaveRestoreEnabled(boolean autoSaveRestoreEnabled) {
+ setFlags(autoSaveRestoreEnabled ? PF_AUTORESTORE : 0, PF_AUTORESTORE);
return (B) this;
}
@@ -938,10 +938,10 @@
}
final static boolean isPasswordVariant(int inputType) {
- final int variantion = inputType & InputType.TYPE_MASK_VARIATION;
- return variantion == InputType.TYPE_TEXT_VARIATION_PASSWORD
- || variantion == InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
- || variantion == InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD;
+ final int variation = inputType & InputType.TYPE_MASK_VARIATION;
+ return variation == InputType.TYPE_TEXT_VARIATION_PASSWORD
+ || variation == InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
+ || variation == InputType.TYPE_TEXT_VARIATION_WEB_PASSWORD;
}
final boolean needAutoSaveTitle() {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/HorizontalGridView.java b/v17/leanback/src/android/support/v17/leanback/widget/HorizontalGridView.java
index e989ca4..6bdae61 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/HorizontalGridView.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/HorizontalGridView.java
@@ -37,7 +37,7 @@
* {@link RecyclerView.Adapter} can optionally implement {@link FacetProviderAdapter} which
* provides {@link FacetProvider} for a given view type; {@link RecyclerView.ViewHolder}
* can also implement {@link FacetProvider}. Facet from ViewHolder
- * has a higher priority than the one from FacetProiderAdapter associated with viewType.
+ * has a higher priority than the one from FacetProviderAdapter associated with viewType.
* Supported optional facets are:
* <ol>
* <li> {@link ItemAlignmentFacet}
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ListRowPresenter.java b/v17/leanback/src/android/support/v17/leanback/widget/ListRowPresenter.java
index 39b4863..94acd99 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ListRowPresenter.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ListRowPresenter.java
@@ -762,7 +762,7 @@
* return new ShadowOverlayHelper.Options().roundedCornerRadius(10);
* </code>
*
- * @return The options to be used for shadow, overlay and rouded corner.
+ * @return The options to be used for shadow, overlay and rounded corner.
*/
protected ShadowOverlayHelper.Options createShadowOverlayOptions() {
return ShadowOverlayHelper.Options.DEFAULT;
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/NonOverlappingLinearLayoutWithForeground.java b/v17/leanback/src/android/support/v17/leanback/widget/NonOverlappingLinearLayoutWithForeground.java
index 52832e9..a486fc1 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/NonOverlappingLinearLayoutWithForeground.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/NonOverlappingLinearLayoutWithForeground.java
@@ -47,7 +47,7 @@
super(context, attrs, defStyle);
if (context.getApplicationInfo().targetSdkVersion >= VERSION_M
&& VERSION.SDK_INT >= VERSION_M) {
- // dont need do anything, base View constructor >=M already reads the foreground if
+ // don't need do anything, base View constructor >=M already reads the foreground if
// targetSDK is >= M.
} else {
// in other cases, including M but targetSDK is less than M, we need setForeground in
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/SearchBar.java b/v17/leanback/src/android/support/v17/leanback/widget/SearchBar.java
index ef2c094..d9d44d2 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/SearchBar.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/SearchBar.java
@@ -545,7 +545,7 @@
if (!mRecognizing) return;
- // Edit text content was cleared when starting recogition; ensure the content is restored
+ // Edit text content was cleared when starting recognition; ensure the content is restored
// in error cases
mSearchTextEditor.setText(mSearchQuery);
mSearchTextEditor.setHint(mHint);
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayContainer.java b/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayContainer.java
index fdb7c71..3e9f320 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayContainer.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayContainer.java
@@ -148,7 +148,7 @@
/**
* Sets the shadow type to {@link #SHADOW_DYNAMIC} if supported and sets the elevation/Z
- * values to the given parameteres.
+ * values to the given parameters.
*/
public void useDynamicShadow(float unfocusedZ, float focusedZ) {
if (mInitialized) {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayHelper.java b/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayHelper.java
index 5f942c6..75063db 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayHelper.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/ShadowOverlayHelper.java
@@ -17,12 +17,9 @@
import android.content.res.Resources;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
-import android.os.Build;
import android.support.v17.leanback.R;
import android.support.v17.leanback.system.Settings;
-import android.util.AttributeSet;
import android.view.ViewGroup;
-import android.view.ViewGroup.LayoutParams;
import android.view.View;
@@ -163,7 +160,7 @@
// figure out shadow type and if we need use wrapper:
if (helper.mNeedsShadow) {
- // if static shadow is prefered or dynamic shadow is not supported,
+ // if static shadow is preferred or dynamic shadow is not supported,
// use static shadow, otherwise use dynamic shadow.
if (!preferZOrder || !supportsDynamicShadow()) {
helper.mShadowType = SHADOW_STATIC;
@@ -216,7 +213,7 @@
* Set value of focused and unfocused Z value for shadow.
*
* @param unfocusedZ Number of pixels for unfocused Z value.
- * @param focusedZ Number of pixels for foucsed Z value.
+ * @param focusedZ Number of pixels for focused Z value.
* @return The Options object itself.
*/
public Options dynamicShadowZ(float unfocusedZ, float focusedZ){
@@ -408,7 +405,7 @@
* See also {@link ShadowOverlayContainer#setShadowFocusLevel(float)}.
*/
public static void setNoneWrapperShadowFocusLevel(View view, float level) {
- setShadowFocusLevel(getNoneWrapperDyamicShadowImpl(view), SHADOW_DYNAMIC, level);
+ setShadowFocusLevel(getNoneWrapperDynamicShadowImpl(view), SHADOW_DYNAMIC, level);
}
/**
@@ -418,7 +415,7 @@
if (needsWrapper()) {
((ShadowOverlayContainer) view).setShadowFocusLevel(level);
} else {
- setShadowFocusLevel(getNoneWrapperDyamicShadowImpl(view), SHADOW_DYNAMIC, level);
+ setShadowFocusLevel(getNoneWrapperDynamicShadowImpl(view), SHADOW_DYNAMIC, level);
}
}
@@ -443,7 +440,7 @@
}
}
- static Object getNoneWrapperDyamicShadowImpl(View view) {
+ static Object getNoneWrapperDynamicShadowImpl(View view) {
return view.getTag(R.id.lb_shadow_impl);
}
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/StaggeredGridDefault.java b/v17/leanback/src/android/support/v17/leanback/widget/StaggeredGridDefault.java
index 54e03e6..975c43c 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/StaggeredGridDefault.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/StaggeredGridDefault.java
@@ -240,7 +240,7 @@
// find start item index of "previous column"
int edgeLimitSearchIndex = findRowEdgeLimitSearchIndex(true);
if (edgeLimitSearchIndex < 0) {
- // if "previous colummn" is not found, using edgeLimit of
+ // if "previous column" is not found, using edgeLimit of
// first row currently in grid
edgeLimit = Integer.MIN_VALUE;
for (int i = 0; i < mNumRows; i++) {
@@ -340,7 +340,7 @@
// find start item index of "previous column"
int edgeLimitSearchIndex = findRowEdgeLimitSearchIndex(false);
if (edgeLimitSearchIndex < 0) {
- // if "previous colummn" is not found, using edgeLimit of
+ // if "previous column" is not found, using edgeLimit of
// last row currently in grid and fill from upper row
rowIndex = rowIndex - 1;
edgeLimit = Integer.MAX_VALUE;
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/StreamingTextView.java b/v17/leanback/src/android/support/v17/leanback/widget/StreamingTextView.java
index 41bec11..b4b4b8f 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/StreamingTextView.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/StreamingTextView.java
@@ -146,7 +146,7 @@
// Copy the text and spans to a SpannedString, since editable text
// doesn't redraw in invalidate() when hardware accelerated
- // if the text or spans havent't changed. (probably a framework bug)
+ // if the text or spans haven't changed. (probably a framework bug)
updateText(new SpannedString(displayText));
if (ANIMATE_DOTS_FOR_PENDING) {
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridPresenter.java b/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridPresenter.java
index 7af5ea0..261cadc 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridPresenter.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridPresenter.java
@@ -44,7 +44,7 @@
@Override
public void onBind(final ItemBridgeAdapter.ViewHolder itemViewHolder) {
- // Only when having an OnItemClickListner, we attach the OnClickListener.
+ // Only when having an OnItemClickListener, we attach the OnClickListener.
if (getOnItemViewClickedListener() != null) {
final View itemView = itemViewHolder.mHolder.view;
itemView.setOnClickListener(new View.OnClickListener() {
@@ -324,7 +324,7 @@
* return new ShadowOverlayHelper.Options().roundedCornerRadius(10);
* </code>
*
- * @return The options to be used for shadow, overlay and rouded corner.
+ * @return The options to be used for shadow, overlay and rounded corner.
*/
protected ShadowOverlayHelper.Options createShadowOverlayOptions() {
return ShadowOverlayHelper.Options.DEFAULT;
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridView.java b/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridView.java
index 849063f..5cb2ec8 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridView.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/VerticalGridView.java
@@ -27,7 +27,7 @@
* {@link RecyclerView.Adapter} can optionally implement {@link FacetProviderAdapter} which
* provides {@link FacetProvider} for a given view type; {@link RecyclerView.ViewHolder}
* can also implement {@link FacetProvider}. Facet from ViewHolder
- * has a higher priority than the one from FacetProiderAdapter associated with viewType.
+ * has a higher priority than the one from FacetProviderAdapter associated with viewType.
* Supported optional facets are:
* <ol>
* <li> {@link ItemAlignmentFacet}
diff --git a/v17/leanback/src/android/support/v17/leanback/widget/picker/Picker.java b/v17/leanback/src/android/support/v17/leanback/widget/picker/Picker.java
index 1f35aae..c2048f6 100644
--- a/v17/leanback/src/android/support/v17/leanback/widget/picker/Picker.java
+++ b/v17/leanback/src/android/support/v17/leanback/widget/picker/Picker.java
@@ -87,10 +87,10 @@
/**
* Sets separator String between Picker columns.
- * @param seperator Separator String between Picker columns.
+ * @param separator Separator String between Picker columns.
*/
- public final void setSeparator(CharSequence seperator) {
- mSeparator = seperator;
+ public final void setSeparator(CharSequence separator) {
+ mSeparator = separator;
}
/**
@@ -190,7 +190,7 @@
final int colIndex = i;
final VerticalGridView columnView = (VerticalGridView) inflater.inflate(
R.layout.lb_picker_column, mPickerView, false);
- // we dont want VerticalGridView to receive focus.
+ // we don't want VerticalGridView to receive focus.
updateColumnSize(columnView);
// always center aligned, not aligning selected item on top/bottom edge.
columnView.setWindowAlignment(VerticalGridView.WINDOW_ALIGN_NO_EDGE);
diff --git a/v7/appcompat/src/android/support/v7/app/ActionBar.java b/v7/appcompat/src/android/support/v7/app/ActionBar.java
index f545f47..e1afe24 100644
--- a/v7/appcompat/src/android/support/v7/app/ActionBar.java
+++ b/v7/appcompat/src/android/support/v7/app/ActionBar.java
@@ -667,7 +667,7 @@
public abstract void addTab(Tab tab, int position);
/**
- * Add a tab for use in tabbed navigation mode. The tab will be insterted at
+ * Add a tab for use in tabbed navigation mode. The tab will be inserted at
* <code>position</code>.
*
* @param tab The tab to add
@@ -833,7 +833,7 @@
/**
* Enable or disable the "home" button in the corner of the action bar. (Note that this
- * is the application home/up affordance on the action bar, not the systemwide home
+ * is the application home/up affordance on the action bar, not the system wide home
* button.)
*
* <p>This defaults to true for packages targeting < API 14. For packages targeting
diff --git a/v7/appcompat/src/android/support/v7/app/AppCompatDelegate.java b/v7/appcompat/src/android/support/v7/app/AppCompatDelegate.java
index 09f4f56..e00d579 100644
--- a/v7/appcompat/src/android/support/v7/app/AppCompatDelegate.java
+++ b/v7/appcompat/src/android/support/v7/app/AppCompatDelegate.java
@@ -427,7 +427,7 @@
/**
* Override the night mode used for this delegate's host component. This method only takes
- * effect for those situtations where {@link #applyDayNight()} works.
+ * effect for those situations where {@link #applyDayNight()} works.
*
* <p>Depending on when this is called, this may not take effect until the next time that
* the host component is created. You may use {@link Activity#recreate()} to force a
@@ -438,10 +438,10 @@
public abstract void setLocalNightMode(@NightMode int mode);
/**
- * Sets the default night mode. This is used across all activities/dialogs but can be overriden
+ * Sets the default night mode. This is used across all activities/dialogs but can be overridden
* locally via {@link #setLocalNightMode(int)}.
*
- * <p>This method only takes effect for those situtations where {@link #applyDayNight()} works.
+ * <p>This method only takes effect for those situations where {@link #applyDayNight()} works.
* Defaults to {@link #MODE_NIGHT_NO}.</p>
*
* @see #setLocalNightMode(int)
@@ -499,7 +499,7 @@
*
* <p>Even with this disabled, you can still use vector resources through
* {@link android.support.v7.widget.AppCompatImageView#setImageResource(int)} and it's
- * {@code app:srcCompat} attribute. They can also be used in anything which AppComapt inflates
+ * {@code app:srcCompat} attribute. They can also be used in anything which AppCompat inflates
* for you, such as menu resources.</p>
*
* <p>Please note: this only takes effect in Activities created after this call.</p>
diff --git a/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV9.java b/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV9.java
index 1a1aacf..e715c3a 100644
--- a/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV9.java
+++ b/v7/appcompat/src/android/support/v7/app/AppCompatDelegateImplV9.java
@@ -311,7 +311,7 @@
if (!mSubDecorInstalled) {
mSubDecor = createSubDecor();
- // If a title was set before we installed the decor, propogate it now
+ // If a title was set before we installed the decor, propagate it now
CharSequence title = getTitle();
if (!TextUtils.isEmpty(title)) {
onTitleChanged(title);
diff --git a/v7/appcompat/src/android/support/v7/app/TwilightCalculator.java b/v7/appcompat/src/android/support/v7/app/TwilightCalculator.java
index 6015e12..f048e55 100644
--- a/v7/appcompat/src/android/support/v7/app/TwilightCalculator.java
+++ b/v7/appcompat/src/android/support/v7/app/TwilightCalculator.java
@@ -79,10 +79,10 @@
* calculates the civil twilight bases on time and geo-coordinates.
*
* @param time time in milliseconds.
- * @param latiude latitude in degrees.
+ * @param latitude latitude in degrees.
* @param longitude latitude in degrees.
*/
- public void calculateTwilight(long time, double latiude, double longitude) {
+ public void calculateTwilight(long time, double latitude, double longitude) {
final float daysSince2000 = (float) (time - UTC_2000) / DateUtils.DAY_IN_MILLIS;
// mean anomaly
@@ -104,7 +104,7 @@
// declination of sun
double solarDec = Math.asin(Math.sin(solarLng) * Math.sin(OBLIQUITY));
- final double latRad = latiude * DEGREES_TO_RADIANS;
+ final double latRad = latitude * DEGREES_TO_RADIANS;
double cosHourAngle = (Math.sin(ALTIDUTE_CORRECTION_CIVIL_TWILIGHT) - Math.sin(latRad)
* Math.sin(solarDec)) / (Math.cos(latRad) * Math.cos(solarDec));
diff --git a/v7/appcompat/src/android/support/v7/graphics/drawable/DrawerArrowDrawable.java b/v7/appcompat/src/android/support/v7/graphics/drawable/DrawerArrowDrawable.java
index 2c658b1..19428dd 100644
--- a/v7/appcompat/src/android/support/v7/graphics/drawable/DrawerArrowDrawable.java
+++ b/v7/appcompat/src/android/support/v7/graphics/drawable/DrawerArrowDrawable.java
@@ -91,7 +91,7 @@
private final Paint mPaint = new Paint();
- // The angle in degress that the arrow head is inclined at.
+ // The angle in degrees that the arrow head is inclined at.
private static final float ARROW_HEAD_ANGLE = (float) Math.toRadians(45);
// The length of top and bottom bars when they merge into an arrow
private float mArrowHeadLength;
diff --git a/v7/appcompat/src/android/support/v7/view/menu/MenuPresenter.java b/v7/appcompat/src/android/support/v7/view/menu/MenuPresenter.java
index cf414fc..5ad52b9 100644
--- a/v7/appcompat/src/android/support/v7/view/menu/MenuPresenter.java
+++ b/v7/appcompat/src/android/support/v7/view/menu/MenuPresenter.java
@@ -114,7 +114,7 @@
public boolean flagActionItems();
/**
- * Called when a menu item with a collapsable action view should expand its action view.
+ * Called when a menu item with a collapsible action view should expand its action view.
*
* @param menu Menu containing the item to be expanded
* @param item Item to be expanded
@@ -123,7 +123,7 @@
public boolean expandItemActionView(MenuBuilder menu, MenuItemImpl item);
/**
- * Called when a menu item with a collapsable action view should collapse its action view.
+ * Called when a menu item with a collapsible action view should collapse its action view.
*
* @param menu Menu containing the item to be collapsed
* @param item Item to be collapsed
diff --git a/v7/appcompat/src/android/support/v7/widget/ActivityChooserModel.java b/v7/appcompat/src/android/support/v7/widget/ActivityChooserModel.java
index af405eb..c4867f0 100644
--- a/v7/appcompat/src/android/support/v7/widget/ActivityChooserModel.java
+++ b/v7/appcompat/src/android/support/v7/widget/ActivityChooserModel.java
@@ -483,7 +483,7 @@
HistoricalRecord historicalRecord = new HistoricalRecord(chosenName,
System.currentTimeMillis(), DEFAULT_HISTORICAL_RECORD_WEIGHT);
- addHisoricalRecord(historicalRecord);
+ addHistoricalRecord(historicalRecord);
return choiceIntent;
}
@@ -550,7 +550,7 @@
newDefaultActivity.resolveInfo.activityInfo.name);
HistoricalRecord historicalRecord = new HistoricalRecord(defaultName,
System.currentTimeMillis(), weight);
- addHisoricalRecord(historicalRecord);
+ addHistoricalRecord(historicalRecord);
}
}
@@ -724,7 +724,7 @@
* @param historicalRecord The record to add.
* @return True if the record was added.
*/
- private boolean addHisoricalRecord(HistoricalRecord historicalRecord) {
+ private boolean addHistoricalRecord(HistoricalRecord historicalRecord) {
final boolean added = mHistoricalRecords.add(historicalRecord);
if (added) {
mHistoricalRecordsChanged = true;
@@ -1036,14 +1036,14 @@
@SuppressWarnings("unchecked")
public Void doInBackground(Object... args) {
List<HistoricalRecord> historicalRecords = (List<HistoricalRecord>) args[0];
- String hostoryFileName = (String) args[1];
+ String historyFileName = (String) args[1];
FileOutputStream fos = null;
try {
- fos = mContext.openFileOutput(hostoryFileName, Context.MODE_PRIVATE);
+ fos = mContext.openFileOutput(historyFileName, Context.MODE_PRIVATE);
} catch (FileNotFoundException fnfe) {
- Log.e(LOG_TAG, "Error writing historical recrod file: " + hostoryFileName, fnfe);
+ Log.e(LOG_TAG, "Error writing historical record file: " + historyFileName, fnfe);
return null;
}
@@ -1075,11 +1075,11 @@
Log.i(LOG_TAG, "Wrote " + recordCount + " historical records.");
}
} catch (IllegalArgumentException iae) {
- Log.e(LOG_TAG, "Error writing historical recrod file: " + mHistoryFileName, iae);
+ Log.e(LOG_TAG, "Error writing historical record file: " + mHistoryFileName, iae);
} catch (IllegalStateException ise) {
- Log.e(LOG_TAG, "Error writing historical recrod file: " + mHistoryFileName, ise);
+ Log.e(LOG_TAG, "Error writing historical record file: " + mHistoryFileName, ise);
} catch (IOException ioe) {
- Log.e(LOG_TAG, "Error writing historical recrod file: " + mHistoryFileName, ioe);
+ Log.e(LOG_TAG, "Error writing historical record file: " + mHistoryFileName, ioe);
} finally {
mCanReadHistoricalData = true;
if (fos != null) {
diff --git a/v7/appcompat/src/android/support/v7/widget/ActivityChooserView.java b/v7/appcompat/src/android/support/v7/widget/ActivityChooserView.java
index e55feb6..16c240a 100644
--- a/v7/appcompat/src/android/support/v7/widget/ActivityChooserView.java
+++ b/v7/appcompat/src/android/support/v7/widget/ActivityChooserView.java
@@ -122,7 +122,7 @@
/**
* Observer for the model data.
*/
- private final DataSetObserver mModelDataSetOberver = new DataSetObserver() {
+ private final DataSetObserver mModelDataSetObserver = new DataSetObserver() {
@Override
public void onChanged() {
@@ -413,7 +413,7 @@
super.onAttachedToWindow();
ActivityChooserModel dataModel = mAdapter.getDataModel();
if (dataModel != null) {
- dataModel.registerObserver(mModelDataSetOberver);
+ dataModel.registerObserver(mModelDataSetObserver);
}
mIsAttachedToWindow = true;
}
@@ -423,7 +423,7 @@
super.onDetachedFromWindow();
ActivityChooserModel dataModel = mAdapter.getDataModel();
if (dataModel != null) {
- dataModel.unregisterObserver(mModelDataSetOberver);
+ dataModel.unregisterObserver(mModelDataSetObserver);
}
ViewTreeObserver viewTreeObserver = getViewTreeObserver();
if (viewTreeObserver.isAlive()) {
@@ -664,11 +664,11 @@
public void setDataModel(ActivityChooserModel dataModel) {
ActivityChooserModel oldDataModel = mAdapter.getDataModel();
if (oldDataModel != null && isShown()) {
- oldDataModel.unregisterObserver(mModelDataSetOberver);
+ oldDataModel.unregisterObserver(mModelDataSetObserver);
}
mDataModel = dataModel;
if (dataModel != null && isShown()) {
- dataModel.registerObserver(mModelDataSetOberver);
+ dataModel.registerObserver(mModelDataSetObserver);
}
notifyDataSetChanged();
}
diff --git a/v7/appcompat/src/android/support/v7/widget/LinearLayoutCompat.java b/v7/appcompat/src/android/support/v7/widget/LinearLayoutCompat.java
index a6dce15..523336b 100644
--- a/v7/appcompat/src/android/support/v7/widget/LinearLayoutCompat.java
+++ b/v7/appcompat/src/android/support/v7/widget/LinearLayoutCompat.java
@@ -487,7 +487,7 @@
}
/**
- * <p>Returns the view at the specified index. This method can be overriden
+ * <p>Returns the view at the specified index. This method can be overridden
* to take into account virtual children. Refer to
* {@link android.widget.TableLayout} and {@link android.widget.TableRow}
* for an example.</p>
@@ -1354,7 +1354,7 @@
/**
* <p>Measure the child according to the parent's measure specs. This
- * method should be overriden by subclasses to force the sizing of
+ * method should be overridden by subclasses to force the sizing of
* children. This method is called by {@link #measureVertical(int, int)} and
* {@link #measureHorizontal(int, int)}.</p>
*
diff --git a/v7/appcompat/src/android/support/v7/widget/ListPopupWindow.java b/v7/appcompat/src/android/support/v7/widget/ListPopupWindow.java
index 3e75e38..de11489 100644
--- a/v7/appcompat/src/android/support/v7/widget/ListPopupWindow.java
+++ b/v7/appcompat/src/android/support/v7/widget/ListPopupWindow.java
@@ -1172,7 +1172,7 @@
View hintView = mPromptView;
if (hintView != null) {
- // if a hint has been specified, we accomodate more space for it and
+ // if a hint has been specified, we accommodate more space for it and
// add a text view in the drop down menu, at the bottom of the list
LinearLayout hintContainer = new LinearLayout(context);
hintContainer.setOrientation(LinearLayout.VERTICAL);
diff --git a/v7/appcompat/src/android/support/v7/widget/ListViewCompat.java b/v7/appcompat/src/android/support/v7/widget/ListViewCompat.java
index 573a1f3..87056d1 100644
--- a/v7/appcompat/src/android/support/v7/widget/ListViewCompat.java
+++ b/v7/appcompat/src/android/support/v7/widget/ListViewCompat.java
@@ -319,7 +319,7 @@
}
child.measure(widthMeasureSpec, heightMeasureSpec);
- // Since this view was measured directly aginst the parent measure
+ // Since this view was measured directly against the parent measure
// spec, we must measure it again before reuse.
child.forceLayout();
diff --git a/v7/appcompat/src/android/support/v7/widget/SuggestionsAdapter.java b/v7/appcompat/src/android/support/v7/widget/SuggestionsAdapter.java
index e9c34fc..0f4351d 100644
--- a/v7/appcompat/src/android/support/v7/widget/SuggestionsAdapter.java
+++ b/v7/appcompat/src/android/support/v7/widget/SuggestionsAdapter.java
@@ -617,7 +617,7 @@
* Gets the activity or application icon for an activity.
*
* @param component Name of an activity.
- * @return A drawable, or {@code null} if neither the acitivy or the application
+ * @return A drawable, or {@code null} if neither the activity or the application
* have an icon set.
*/
private Drawable getActivityIcon(ComponentName component) {
diff --git a/v7/mediarouter/src/android/support/v7/media/MediaControlIntent.java b/v7/mediarouter/src/android/support/v7/media/MediaControlIntent.java
index c827534..f1de234 100644
--- a/v7/mediarouter/src/android/support/v7/media/MediaControlIntent.java
+++ b/v7/mediarouter/src/android/support/v7/media/MediaControlIntent.java
@@ -202,7 +202,7 @@
* <p>
* When an application has a valid session, it is essentially in control of remote playback
* on the route. No other application can view or modify the remote playback state
- * of that applicaton's session without knowing its id.
+ * of that application's session without knowing its id.
* </p><p>
* However, other applications can perform actions that have the effect of stopping
* playback and invalidating the current session. When this occurs, the former application
diff --git a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java b/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
index e84276d..e4360b3 100644
--- a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
+++ b/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
@@ -443,7 +443,7 @@
public boolean onGenericFailure(int requestId) {
if (requestId == mPendingRegisterRequestId) {
mPendingRegisterRequestId = 0;
- onConnectionError(this, "Registation failed");
+ onConnectionError(this, "Registration failed");
}
ControlRequestCallback callback = mPendingCallbacks.get(requestId);
if (callback != null) {
diff --git a/v7/palette/src/main/java/android/support/v7/graphics/Palette.java b/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
index f729380..dec03b2 100644
--- a/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
+++ b/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
@@ -656,7 +656,7 @@
* the greater time it will take to generate the palette. The smaller the image is, the
* more detail is lost in the resulting image and thus less precision for color selection.
*
- * @param area the number of pixels that the intemediary scaled down Bitmap should cover,
+ * @param area the number of pixels that the intermediary scaled down Bitmap should cover,
* or any value <= 0 to disable resizing.
*/
@NonNull
diff --git a/v7/preference/src/android/support/v7/preference/DropDownPreference.java b/v7/preference/src/android/support/v7/preference/DropDownPreference.java
index 376f089..3d6ac38 100644
--- a/v7/preference/src/android/support/v7/preference/DropDownPreference.java
+++ b/v7/preference/src/android/support/v7/preference/DropDownPreference.java
@@ -71,9 +71,9 @@
/**
* By default, this class uses a simple {@link android.widget.ArrayAdapter}. But if you need
- * a more complicated {@link android.widget.ArrayAdapter}, this method can be overriden to
+ * a more complicated {@link android.widget.ArrayAdapter}, this method can be overridden to
* create a custom one.
- * <p> Note: This method is called from the constructor. So, overriden methods will get called
+ * <p> Note: This method is called from the constructor. So, overridden methods will get called
* before any subclass initialization.
*
* @return The custom {@link android.widget.ArrayAdapter} that needs to be used with this class.
diff --git a/v7/preference/src/android/support/v7/preference/PreferenceGroupAdapter.java b/v7/preference/src/android/support/v7/preference/PreferenceGroupAdapter.java
index 878ddda..ff29ed8 100644
--- a/v7/preference/src/android/support/v7/preference/PreferenceGroupAdapter.java
+++ b/v7/preference/src/android/support/v7/preference/PreferenceGroupAdapter.java
@@ -241,7 +241,7 @@
notifyItemInserted(previousVisibleIndex + 1);
} else {
- // The preference has become invisibile. Find it in the list and remove it.
+ // The preference has become invisible. Find it in the list and remove it.
int removalIndex;
final int listSize = mPreferenceList.size();
@@ -322,8 +322,8 @@
public int getPreferenceAdapterPosition(Preference preference) {
final int size = mPreferenceList.size();
for (int i = 0; i < size; i++) {
- final Preference canidate = mPreferenceList.get(i);
- if (canidate != null && canidate.equals(preference)) {
+ final Preference candidate = mPreferenceList.get(i);
+ if (candidate != null && candidate.equals(preference)) {
return i;
}
}
diff --git a/v7/preference/src/android/support/v7/preference/PreferenceInflater.java b/v7/preference/src/android/support/v7/preference/PreferenceInflater.java
index 30f92c1..33196de 100644
--- a/v7/preference/src/android/support/v7/preference/PreferenceInflater.java
+++ b/v7/preference/src/android/support/v7/preference/PreferenceInflater.java
@@ -211,7 +211,7 @@
* @param name The full name of the class to be instantiated.
* @param attrs The XML attributes supplied for this instance.
*
- * @return The newly instantied item, or null.
+ * @return The newly instantiated item, or null.
*/
private Preference createItem(@NonNull String name, @Nullable String[] prefixes,
AttributeSet attrs)
diff --git a/v7/recyclerview/src/android/support/v7/widget/GridLayoutManager.java b/v7/recyclerview/src/android/support/v7/widget/GridLayoutManager.java
index 6a56418..f584834 100644
--- a/v7/recyclerview/src/android/support/v7/widget/GridLayoutManager.java
+++ b/v7/recyclerview/src/android/support/v7/widget/GridLayoutManager.java
@@ -10,7 +10,7 @@
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific languag`e governing permissions and
+ * See the License for the specific language governing permissions and
* limitations under the License.
*/
package android.support.v7.widget;
diff --git a/v7/recyclerview/src/android/support/v7/widget/LayoutState.java b/v7/recyclerview/src/android/support/v7/widget/LayoutState.java
index bf730ad..23d8ee8 100644
--- a/v7/recyclerview/src/android/support/v7/widget/LayoutState.java
+++ b/v7/recyclerview/src/android/support/v7/widget/LayoutState.java
@@ -10,7 +10,7 @@
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific languag`e governing permissions and
+ * See the License for the specific language governing permissions and
* limitations under the License.
*/
diff --git a/v7/recyclerview/src/android/support/v7/widget/LinearLayoutManager.java b/v7/recyclerview/src/android/support/v7/widget/LinearLayoutManager.java
index a36cf50..ddc9bad 100644
--- a/v7/recyclerview/src/android/support/v7/widget/LinearLayoutManager.java
+++ b/v7/recyclerview/src/android/support/v7/widget/LinearLayoutManager.java
@@ -10,7 +10,7 @@
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific languag`e governing permissions and
+ * See the License for the specific language governing permissions and
* limitations under the License.
*/
@@ -199,7 +199,7 @@
* RecyclerView.
* <p>
* If you are using a {@link RecyclerView.RecycledViewPool}, it might be a good idea to set
- * this flag to <code>true</code> so that views will be avilable to other RecyclerViews
+ * this flag to <code>true</code> so that views will be available to other RecyclerViews
* immediately.
* <p>
* Note that, setting this flag will result in a performance drop if RecyclerView
@@ -304,7 +304,7 @@
}
/**
- * Returns the current orientaion of the layout.
+ * Returns the current orientation of the layout.
*
* @return Current orientation, either {@link #HORIZONTAL} or {@link #VERTICAL}
* @see #setOrientation(int)
@@ -926,7 +926,7 @@
mLayoutState.mCurrentPosition = itemPosition;
mLayoutState.mLayoutDirection = LayoutState.LAYOUT_END;
mLayoutState.mOffset = offset;
- mLayoutState.mScrollingOffset = LayoutState.SCOLLING_OFFSET_NaN;
+ mLayoutState.mScrollingOffset = LayoutState.SCROLLING_OFFSET_NaN;
}
private void updateLayoutStateToFillStart(AnchorInfo anchorInfo) {
@@ -940,7 +940,7 @@
LayoutState.ITEM_DIRECTION_HEAD;
mLayoutState.mLayoutDirection = LayoutState.LAYOUT_START;
mLayoutState.mOffset = offset;
- mLayoutState.mScrollingOffset = LayoutState.SCOLLING_OFFSET_NaN;
+ mLayoutState.mScrollingOffset = LayoutState.SCROLLING_OFFSET_NaN;
}
@@ -1357,13 +1357,13 @@
* @param layoutState Configuration on how we should fill out the available space.
* @param state Context passed by the RecyclerView to control scroll steps.
* @param stopOnFocusable If true, filling stops in the first focusable new child
- * @return Number of pixels that it added. Useful for scoll functions.
+ * @return Number of pixels that it added. Useful for scroll functions.
*/
int fill(RecyclerView.Recycler recycler, LayoutState layoutState,
RecyclerView.State state, boolean stopOnFocusable) {
// max offset we should set is mFastScroll + available
final int start = layoutState.mAvailable;
- if (layoutState.mScrollingOffset != LayoutState.SCOLLING_OFFSET_NaN) {
+ if (layoutState.mScrollingOffset != LayoutState.SCROLLING_OFFSET_NaN) {
// TODO ugly bug fix. should not happen
if (layoutState.mAvailable < 0) {
layoutState.mScrollingOffset += layoutState.mAvailable;
@@ -1392,7 +1392,7 @@
remainingSpace -= layoutChunkResult.mConsumed;
}
- if (layoutState.mScrollingOffset != LayoutState.SCOLLING_OFFSET_NaN) {
+ if (layoutState.mScrollingOffset != LayoutState.SCROLLING_OFFSET_NaN) {
layoutState.mScrollingOffset += layoutChunkResult.mConsumed;
if (layoutState.mAvailable < 0) {
layoutState.mScrollingOffset += layoutState.mAvailable;
@@ -1801,7 +1801,7 @@
ensureLayoutState();
final int maxScroll = (int) (MAX_SCROLL_FACTOR * mOrientationHelper.getTotalSpace());
updateLayoutState(layoutDir, maxScroll, false, state);
- mLayoutState.mScrollingOffset = LayoutState.SCOLLING_OFFSET_NaN;
+ mLayoutState.mScrollingOffset = LayoutState.SCROLLING_OFFSET_NaN;
mLayoutState.mRecycle = false;
fill(recycler, mLayoutState, state, true);
final View nextFocus;
@@ -1937,7 +1937,7 @@
final static int ITEM_DIRECTION_TAIL = 1;
- final static int SCOLLING_OFFSET_NaN = Integer.MIN_VALUE;
+ final static int SCROLLING_OFFSET_NaN = Integer.MIN_VALUE;
/**
* We may not want to recycle children in some cases (e.g. layout)
diff --git a/v7/recyclerview/src/android/support/v7/widget/LinearSmoothScroller.java b/v7/recyclerview/src/android/support/v7/widget/LinearSmoothScroller.java
index 0996ca4..cddcf11 100644
--- a/v7/recyclerview/src/android/support/v7/widget/LinearSmoothScroller.java
+++ b/v7/recyclerview/src/android/support/v7/widget/LinearSmoothScroller.java
@@ -26,7 +26,7 @@
/**
* {@link RecyclerView.SmoothScroller} implementation which uses
- * {@link android.view.animation.LinearInterpolator} until the target position becames a child of
+ * {@link android.view.animation.LinearInterpolator} until the target position becomes a child of
* the RecyclerView and then uses
* {@link android.view.animation.DecelerateInterpolator} to slowly approach to target position.
*/
diff --git a/v7/recyclerview/src/android/support/v7/widget/RecyclerView.java b/v7/recyclerview/src/android/support/v7/widget/RecyclerView.java
index 5fafc08..81262f6 100644
--- a/v7/recyclerview/src/android/support/v7/widget/RecyclerView.java
+++ b/v7/recyclerview/src/android/support/v7/widget/RecyclerView.java
@@ -1041,7 +1041,7 @@
return;
}
stopScroll();
- // TODO We should do this switch a dispachLayout pass and animate children. There is a good
+ // TODO We should do this switch a dispatchLayout pass and animate children. There is a good
// chance that LayoutManagers will re-use views.
if (mLayout != null) {
if (mIsAttached) {
@@ -1741,7 +1741,7 @@
}
if (!performLayoutChildren) {
// Reset the layout request eaten counter.
- // This is necessary since eatRequest calls can be nested in which case the outher
+ // This is necessary since eatRequest calls can be nested in which case the other
// call will override the inner one.
// for instance:
// eat layout for process adapter updates
@@ -2187,7 +2187,7 @@
}
/**
- * Logic taken from FocusSarch#isCandidate
+ * Logic taken from FocusSearch#isCandidate
*/
private boolean isPreferredNextFocusAbsolute(View focused, View next, int direction) {
mTempRect.set(0, 0, focused.getWidth(), focused.getHeight());
@@ -3528,7 +3528,7 @@
for (int i = 0; i < count; i++) {
mItemDecorations.get(i).onDrawOver(c, this, mState);
}
- // TODO If padding is not 0 and chilChildrenToPadding is false, to draw glows properly, we
+ // TODO If padding is not 0 and clipChildrenToPadding is false, to draw glows properly, we
// need find children closest to edges. Not sure if it is worth the effort.
boolean needsInvalidate = false;
if (mLeftGlow != null && !mLeftGlow.isFinished()) {
@@ -4774,7 +4774,7 @@
// if it is not removed, verify the type and id.
if (holder.isRemoved()) {
if (DEBUG && !mState.isPreLayout()) {
- throw new IllegalStateException("should not receive a removed view unelss it"
+ throw new IllegalStateException("should not receive a removed view unless it"
+ " is pre layout");
}
return mState.isPreLayout();
@@ -5709,7 +5709,7 @@
* have the updated adapter position.
*
* Override {@link #onBindViewHolder(ViewHolder, int, List)} instead if Adapter can
- * handle effcient partial bind.
+ * handle efficient partial bind.
*
* @param holder The ViewHolder which should be updated to represent the contents of the
* item at the given position in the data set.
@@ -6893,7 +6893,7 @@
/**
* <p>Starts a smooth scroll using the provided SmoothScroller.</p>
* <p>Calling this method will cancel any previous smooth scroll request.</p>
- * @param smoothScroller Unstance which defines how smooth scroll should be animated
+ * @param smoothScroller Instance which defines how smooth scroll should be animated
*/
public void startSmoothScroll(SmoothScroller smoothScroller) {
if (mSmoothScroller != null && smoothScroller != mSmoothScroller
@@ -9710,7 +9710,7 @@
}
/**
- * @return True if ViewHolder is not refenrenced by RecyclerView animations but has
+ * @return True if ViewHolder is not referenced by RecyclerView animations but has
* transient state which will prevent it from being recycled.
*/
private boolean doesTransientStatePreventRecycling() {
@@ -10114,10 +10114,10 @@
* @param scrollVector The vector that points to the target scroll position
*/
protected void normalize(PointF scrollVector) {
- final double magnitute = Math.sqrt(scrollVector.x * scrollVector.x + scrollVector.y *
- scrollVector.y);
- scrollVector.x /= magnitute;
- scrollVector.y /= magnitute;
+ final double magnitude = Math.sqrt(scrollVector.x * scrollVector.x + scrollVector.y
+ * scrollVector.y);
+ scrollVector.x /= magnitude;
+ scrollVector.y /= magnitude;
}
/**
@@ -10138,7 +10138,7 @@
* provided {@link Action} to define the next scroll.</p>
*
* @param dx Last scroll amount horizontally
- * @param dy Last scroll amount verticaully
+ * @param dy Last scroll amount vertically
* @param state Transient state of RecyclerView
* @param action If you want to trigger a new smooth scroll and cancel the previous one,
* update this object.
@@ -11197,7 +11197,7 @@
* be a matching {@link #dispatchAnimationFinished(ViewHolder)} call by the subclass.
* <p>
* For {@link #animateChange(ViewHolder, ViewHolder, ItemHolderInfo, ItemHolderInfo)
- * animateChange()}, sublcass should call this method for both the <code>oldHolder</code>
+ * animateChange()}, subclass should call this method for both the <code>oldHolder</code>
* and <code>newHolder</code> (if they are not the same instance).
*
* @param viewHolder The ViewHolder whose animation is finished.
@@ -11212,7 +11212,7 @@
/**
* Called after {@link #dispatchAnimationFinished(ViewHolder)} is called by the
- * ItemAniamtor.
+ * ItemAnimator.
*
* @param viewHolder The ViewHolder whose animation is finished. There might still be other
* animations running on this ViewHolder.
@@ -11234,7 +11234,7 @@
* {@link #dispatchAnimationStarted(ViewHolder)} call by the subclass.
* <p>
* For {@link #animateChange(ViewHolder, ViewHolder, ItemHolderInfo, ItemHolderInfo)
- * animateChange()}, sublcass should call this method for both the <code>oldHolder</code>
+ * animateChange()}, subclass should call this method for both the <code>oldHolder</code>
* and <code>newHolder</code> (if they are not the same instance).
* <p>
* If your ItemAnimator decides not to animate a ViewHolder, it should call
@@ -11261,7 +11261,7 @@
/**
* Like {@link #isRunning()}, this method returns whether there are any item
- * animations currently running. Addtionally, the listener passed in will be called
+ * animations currently running. Additionally, the listener passed in will be called
* when there are no item animations running, either immediately (before the method
* returns) if no animations are currently running, or when the currently running
* animations are {@link #dispatchAnimationsFinished() finished}.
@@ -11395,7 +11395,7 @@
* structure. You can extend this class if you would like to keep more information about
* the Views.
* <p>
- * If you want to provide your own implementation butstill use `super` methods to record
+ * If you want to provide your own implementation but still use `super` methods to record
* basic information, you can override {@link #obtainHolderInfo()} to provide your own
* instances.
*/
diff --git a/v7/recyclerview/src/android/support/v7/widget/helper/ItemTouchHelper.java b/v7/recyclerview/src/android/support/v7/widget/helper/ItemTouchHelper.java
index 254ebf8..54a7377 100644
--- a/v7/recyclerview/src/android/support/v7/widget/helper/ItemTouchHelper.java
+++ b/v7/recyclerview/src/android/support/v7/widget/helper/ItemTouchHelper.java
@@ -2227,7 +2227,7 @@
* {@link #setDefaultSwipeDirs(int)}.
*
* @param recyclerView The RecyclerView to which the ItemTouchHelper is attached to.
- * @param viewHolder The RecyclerView for which the swipe drection is queried.
+ * @param viewHolder The RecyclerView for which the swipe direction is queried.
* @return A binary OR of direction flags.
*/
public int getSwipeDirs(RecyclerView recyclerView, ViewHolder viewHolder) {
@@ -2240,7 +2240,7 @@
* {@link #setDefaultDragDirs(int)}.
*
* @param recyclerView The RecyclerView to which the ItemTouchHelper is attached to.
- * @param viewHolder The RecyclerView for which the swipe drection is queried.
+ * @param viewHolder The RecyclerView for which the swipe direction is queried.
* @return A binary OR of direction flags.
*/
public int getDragDirs(RecyclerView recyclerView, ViewHolder viewHolder) {