Commit 564224fb authored by Nihar Thakkar's avatar Nihar Thakkar
Browse files

Improve score hints

parent e01c0684
......@@ -10,6 +10,7 @@ import android.support.design.widget.Snackbar
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import android.text.method.LinkMovementMethod
import android.util.DisplayMetrics
import android.util.TypedValue
import android.view.Menu
......@@ -17,6 +18,7 @@ import android.view.MenuItem
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import io.eelo.appinstaller.R
import io.eelo.appinstaller.application.model.Application
import io.eelo.appinstaller.application.model.ApplicationStateListener
......@@ -259,10 +261,13 @@ class ApplicationActivity : AppCompatActivity(), ApplicationStateListener,
setPrivacyRatingBorder(-1)
}
app_privacy_container.setOnClickListener {
val message = layoutInflater.inflate(R.layout.privacy_dialog_message, null) as
TextView
message.movementMethod = (LinkMovementMethod.getInstance())
val alertDialog = AlertDialog.Builder(this).create()
alertDialog.setIcon(R.drawable.ic_dialog_info)
alertDialog.setTitle(R.string.app_privacy_score)
alertDialog.setMessage(getString(R.string.app_privacy_description))
alertDialog.setView(message)
alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getString(android.R.string.ok))
{ _, _ ->
alertDialog.dismiss()
......
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingStart="?android:dialogPreferredPadding"
android:paddingTop="@dimen/layout_padding_medium"
android:paddingEnd="?android:dialogPreferredPadding"
android:text="@string/app_privacy_description"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/text_size_large" />
\ No newline at end of file
......@@ -20,11 +20,11 @@
<string name="action_share">Share</string>
<string name="app_ratings_title">Ratings</string>
<string name="app_privacy_score">Privacy</string>
<string name="app_privacy_description">Score out of 10. Computed using Exodus privacy analyses, based on permissions and trackers used in the app.</string>
<string name="app_privacy_description">Score out of 10. Computed using <a href="https://exodus-privacy.eu.org">Exodus Privacy analyses</a>, based on permissions and trackers used in the app.</string>
<string name="app_rating">Rating</string>
<string name="app_rating_description">Score out of 5. Computed using users\' ratings of the app.</string>
<string name="app_energy_score">Energy</string>
<string name="app_energy_description">Score out of 10. Computed using the apps\' battery usage behavior.</string>
<string name="app_energy_description">Score out of 10. Computed using the app\'s battery usage as measured on devices in a dedicated lab. Coming soon.</string>
<string name="app_privacy_title">Privacy analyses - powered by Exodus</string>
<string name="app_permissions_title">Permissions</string>
<string name="app_trackers_title">Trackers</string>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment