Skip to content

Commit

Permalink
Fix part #530: topic play dashed line issue fix in pre lollipop devic…
Browse files Browse the repository at this point in the history
…es (#627)

* topic play dashed line issue fix in pre lollipop devices

* nit
  • Loading branch information
nikitamarysolomanpvt authored Jan 28, 2020
1 parent ae5a0c4 commit 3cf1964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.oppia.app.topic.lessons

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import org.oppia.app.databinding.TopicLessonsStorySummaryBinding
Expand Down Expand Up @@ -106,7 +107,7 @@ class StorySummaryAdapter(
storySummaryViewModel.storySummary.chapterCount,
completedChapterCount
)

binding.topicPlayStoryDashedLineView.setLayerType(View.LAYER_TYPE_SOFTWARE, /* paint= */ null)
val chapterList = storySummaryViewModel.storySummary.chapterList
binding.chapterRecyclerView.adapter = ChapterSummaryAdapter(chapterList, chapterSummarySelector)

Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/topic_lessons_story_summary.xml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
android:visibility="@{isListExpanded? View.VISIBLE : View.GONE}">

<View
android:id="@+id/topic_play_story_dashed_line_view"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_gravity="center_horizontal"
Expand Down

0 comments on commit 3cf1964

Please sign in to comment.