Tango: added Privacy Policy link

This commit is contained in:
matlabbe
2017-02-07 00:37:37 -05:00
parent 6aecebcf2c
commit 5e9c4fde95
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- BEGIN_INCLUDE(manifest) --> <!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.introlab.rtabmap" package="com.introlab.rtabmap"
android:versionCode="34" android:versionCode="35"
android:versionName="@RTABMAP_VERSION@"> android:versionName="@RTABMAP_VERSION@">
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.CAMERA" />
-1
View File
@@ -5,4 +5,3 @@ Copyright 2016<br>
IntRoLab - Universit&eacute; de Sherbrooke<br> IntRoLab - Universit&eacute; de Sherbrooke<br>
<b>http://introlab.github.io/rtabmap</b><br><br> <b>http://introlab.github.io/rtabmap</b><br><br>
+1 -1
View File
@@ -63,7 +63,7 @@
<string name="pref_key_normal_k">pref_key_normal_k</string> <string name="pref_default_normal_k">6</string> <string name="pref_key_normal_k">pref_key_normal_k</string> <string name="pref_default_normal_k">6</string>
<string name="pref_key_max_texture_distance">pref_key_max_texture_distance</string> <string name="pref_default_max_texture_distance">0</string> <string name="pref_key_max_texture_distance">pref_key_max_texture_distance</string> <string name="pref_default_max_texture_distance">0</string>
<string name="pref_key_block_render">pref_key_block_render</string> <string name="pref_default_block_render">false</string> <string name="pref_key_block_render">pref_key_block_render</string> <string name="pref_default_block_render">false</string>
<string name="pref_key_opt_depth">pref_key_opt_depth</string> <string name="pref_default_opt_depth">9</string> <string name="pref_key_opt_depth">pref_key_opt_depth</string> <string name="pref_default_opt_depth">8</string>
<string name="pref_key_opt_decimation_factor">pref_key_opt_decimation_factor</string><string name="pref_default_opt_decimation_factor">80</string> <string name="pref_key_opt_decimation_factor">pref_key_opt_decimation_factor</string><string name="pref_default_opt_decimation_factor">80</string>
<string name="pref_key_opt_color_radius">pref_key_opt_color_radius</string> <string name="pref_default_opt_color_radius">0</string> <string name="pref_key_opt_color_radius">pref_key_opt_color_radius</string> <string name="pref_default_opt_color_radius">0</string>
<string name="pref_key_opt_clean_white">pref_key_opt_clean_white</string> <string name="pref_default_opt_clean_white">true</string> <string name="pref_key_opt_clean_white">pref_key_opt_clean_white</string> <string name="pref_default_opt_clean_white">true</string>
@@ -8,11 +8,13 @@ import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import android.app.Dialog; import android.app.Dialog;
import android.content.Context; import android.content.Context;
import android.graphics.Color; import android.graphics.Color;
import android.os.Bundle; import android.os.Bundle;
import android.text.Html; import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.text.util.Linkify; import android.text.util.Linkify;
import android.widget.TextView; import android.widget.TextView;
@@ -33,8 +35,10 @@ public class AboutDialog extends Dialog{
setContentView(R.layout.about); setContentView(R.layout.about);
TextView tv = (TextView)findViewById(R.id.info_text); TextView tv = (TextView)findViewById(R.id.info_text);
tv.setText(Html.fromHtml(readRawTextFile(R.raw.info))); tv.setText(Html.fromHtml(readRawTextFile(R.raw.info)));
tv.setMovementMethod(LinkMovementMethod.getInstance());
tv.setLinkTextColor(Color.WHITE); tv.setLinkTextColor(Color.WHITE);
Linkify.addLinks(tv, Linkify.ALL); Linkify.addLinks(tv, Linkify.ALL);
tv.append(Html.fromHtml("<b><a href=http://introlab.github.io/rtabmap/index.html#privacy-policy>Privacy Policy</a></b>"));
} }
public static String readRawTextFile(int id) { public static String readRawTextFile(int id) {