Skip to content
This repository was archived by the owner on Dec 16, 2023. It is now read-only.

Commit f1d5e0d

Browse files
committed
Add privacy policy link
1 parent 2f6d37b commit f1d5e0d

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

app/src/main/java/com/marknkamau/justjava/ui/about/AboutActivity.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class AboutActivity : AppCompatActivity(), View.OnClickListener {
4747
imgLinkedin.setOnClickListener(this)
4848
imgGithub.setOnClickListener(this)
4949
imgWebsite.setOnClickListener(this)
50+
tvPrivacyPolicy.setOnClickListener(this)
5051

5152
scrollView.post{
5253
Runnable {
@@ -63,6 +64,7 @@ class AboutActivity : AppCompatActivity(), View.OnClickListener {
6364
imgLinkedin -> openUrl("https://linkedin.com/in/marknjunge")
6465
imgGithub -> openUrl("https://github.com/MarkNjunge")
6566
imgWebsite -> openUrl("https://marknjunge.com")
67+
tvPrivacyPolicy -> openUrl("https://marknjunge.com/projects/justjava/privacy")
6668
}
6769
}
6870

app/src/main/res/layout/activity_about.xml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,12 +200,12 @@
200200
android:layout_width="0dp"
201201
android:layout_height="wrap_content"
202202
android:layout_marginStart="8dp"
203-
android:layout_marginTop="16dp"
203+
android:layout_marginTop="8dp"
204204
android:text="Open Source Libraries"
205205
android:textColor="@color/colorAccent"
206206
android:textSize="17sp"
207207
app:layout_constraintStart_toStartOf="parent"
208-
app:layout_constraintTop_toBottomOf="@+id/textView19" />
208+
app:layout_constraintTop_toBottomOf="@+id/tvPrivacyPolicy" />
209209

210210
<android.support.v7.widget.RecyclerView
211211
android:id="@+id/rvLibraries"
@@ -219,5 +219,19 @@
219219
tools:itemCount="2"
220220
tools:listitem="@layout/item_library" />
221221

222+
<TextView
223+
android:id="@+id/tvPrivacyPolicy"
224+
android:layout_width="wrap_content"
225+
android:layout_height="wrap_content"
226+
android:layout_marginStart="8dp"
227+
android:layout_marginTop="8dp"
228+
android:paddingBottom="8dp"
229+
android:paddingTop="8dp"
230+
android:text="Privacy Policy"
231+
android:textColor="@color/colorAccent"
232+
android:textSize="17sp"
233+
app:layout_constraintStart_toStartOf="parent"
234+
app:layout_constraintTop_toBottomOf="@+id/textView19" />
235+
222236
</android.support.constraint.ConstraintLayout>
223237
</ScrollView>

0 commit comments

Comments
 (0)