Skip to content

Commit

Permalink
Package-specific resource name - to avoid possible conflicts with the…
Browse files Browse the repository at this point in the history
… client apps resources.
  • Loading branch information
alexanderbezverhni committed Nov 21, 2016
1 parent c8a8029 commit 87b8b40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void attachToRecyclerView(@Nullable RecyclerView recyclerView)
if (recyclerView != null) {
if (mGravity == Gravity.START || mGravity == Gravity.END) {
mIsRtlHorizontal
= recyclerView.getContext().getResources().getBoolean(R.bool.is_rtl);
= recyclerView.getContext().getResources().getBoolean(R.bool.com_github_rubensousa_gravitysnaphelper_is_rtl);
}
if (mSnapListener != null) {
recyclerView.addOnScrollListener(mScrollListener);
Expand Down
2 changes: 1 addition & 1 deletion gravitysnaphelper/src/main/res/values-ldrtl/attrs.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="is_rtl">true</bool>
<bool name="com_github_rubensousa_gravitysnaphelper_is_rtl">true</bool>
</resources>
2 changes: 1 addition & 1 deletion gravitysnaphelper/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<bool name="is_rtl">false</bool>
<bool name="com_github_rubensousa_gravitysnaphelper_is_rtl">false</bool>
</resources>

0 comments on commit 87b8b40

Please sign in to comment.