Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit 0d8fb4c

Browse files
authored
Merge pull request #113 from amardeshbd/support-tech-blog
[UPDATE] Support tech blog items on resources screen
2 parents 931658d + f83385a commit 0d8fb4c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
applicationId "com.hossainkhan.android.constraintlayout"
1111
minSdkVersion rootProject.ext.androidMinSdkVersion
1212
targetSdkVersion rootProject.ext.androidTargetSdkVersion
13-
versionCode 200
14-
versionName "2.0-constraint-layout-demo"
13+
versionCode 210
14+
versionName "2.1-constraint-layout-demo"
1515
versionNameSuffix "-${gitSha()}"
1616

1717
buildConfigField "String", "GIT_SHA", "\"${gitSha()}\""

app/src/main/java/com/hossainkhan/android/demo/data/ResourceInfo.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import java.util.Date
2222

2323

2424
/**
25-
* External resource info.
25+
* External resource info like Youtube video or technical articles online.
2626
*
2727
* Example:
2828
* - author: Nicolas Roard & John Hoford
@@ -52,7 +52,8 @@ data class ResourceInfo(
5252
return FirestoreDateFormatter.date(date)
5353
}
5454

55-
val isYouTubeUrl: Boolean = url.contains("youtube.com/watch?v=", ignoreCase = true)
55+
val isYouTubeUrl: Boolean
56+
get() = url.contains("youtube.com/watch?v=", ignoreCase = true)
5657

5758
/**
5859
* Provides [Uri] for directly invoking youtube app via Android Intent.

0 commit comments

Comments
 (0)