Skip to content

Commit

Permalink
Added link to privacy policy
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmoussa committed Jan 16, 2017
1 parent a38d23a commit 5ab5d3b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
Binary file modified app-release.apk
Binary file not shown.
6 changes: 6 additions & 0 deletions app/src/main/java/com/mmmoussa/iqra/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.method.LinkMovementMethod;
import android.view.MenuItem;
import android.widget.TextView;

import com.google.android.gms.analytics.HitBuilders;
import com.google.android.gms.analytics.Tracker;
Expand All @@ -27,6 +29,10 @@ protected void onCreate(Bundle savedInstanceState) {
// Obtain the shared Tracker instance.
AnalyticsApplication application = (AnalyticsApplication) getApplication();
mTracker = application.getDefaultTracker();

// Make html links in the text clickable
TextView aboutTextView = (TextView) findViewById(R.id.aboutTextView);
aboutTextView.setMovementMethod(LinkMovementMethod.getInstance());
}

@Override
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
android:layout_height="match_parent">

<TextView
android:id="@+id/textView"
android:id="@+id/aboutTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:singleLine="false"
android:text="@string/about_paragraph"
android:textSize="18sp"
android:typeface="normal" />
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
\n\nو الشكر يعم كل من ساهم في مشروع:
\nAlfanous
\nTanzil.net
\nAndroid Asynchronous Http Client</string>
\nAndroid Asynchronous Http Client
\n\n<a href="https://iqraapp.com/privacy">سياسة الخصوصية</a></string>

<!-- Contact -->
<string name="contact_title">تواصل مع المطور</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
\n\nThe logo of this app is designed by Razan Qaoud and the app designs were made by
Thamjeeth Abdul Gaffoor. Arabic translation was done by Mohammed Fahad.
\n\nCredit is also due to all of the people who have contributed to the
projects Alfanous, Tanzil.net, and Android Asynchronous Http Client.</string>
projects Alfanous, Tanzil.net, and Android Asynchronous Http Client.
\n\n<a href="https://iqraapp.com/privacy">Privacy Policy</a></string>

<!-- Contact -->
<string name="contact_title">Contact the developer</string>
Expand Down

0 comments on commit 5ab5d3b

Please sign in to comment.