Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
rtl support hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
omarihamza committed Nov 10, 2019
1 parent b4e6f80 commit 406b40a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion storyview/src/main/java/omari/hamza/storyview/StoryView.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
width = displaymetrics.widthPixels;
height = displaymetrics.heightPixels;
// Get field from view
setupViews(view);
readArguments();
setupViews(view);
setupStories();

}
Expand All @@ -124,6 +124,7 @@ private void readArguments() {
storiesList = new ArrayList<>((ArrayList<MyStory>) getArguments().getSerializable(IMAGES_KEY));
duration = getArguments().getLong(DURATION_KEY, 2000);
startingIndex = getArguments().getInt(STARTING_INDEX_TAG, 0);
isRtl = getArguments().getBoolean(IS_RTL_TAG, false);
}

private void setupViews(View view) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,5 +242,4 @@ public void resume() {
if (current < 0) return;
progressBars.get(current).resumeProgress();
}

}

0 comments on commit 406b40a

Please sign in to comment.