Added GNU GPL v2 link in about
This commit is contained in:
parent
1d6ef79585
commit
5c366f0af2
4 changed files with 19 additions and 5 deletions
|
@ -68,7 +68,7 @@ public class AboutFragment extends Fragment implements OnClickListener {
|
|||
getString(R.string.about_version),
|
||||
BuildConfig.VERSION_NAME + " (" + BuildConfig.VERSION_CODE + ")"));
|
||||
|
||||
TextView privacyPolicy = view.findViewById(R.id.privaci_policy_link);
|
||||
TextView privacyPolicy = view.findViewById(R.id.privacy_policy_link);
|
||||
privacyPolicy.setOnClickListener(
|
||||
new OnClickListener() {
|
||||
@Override
|
||||
|
@ -81,6 +81,19 @@ public class AboutFragment extends Fragment implements OnClickListener {
|
|||
}
|
||||
});
|
||||
|
||||
TextView license = view.findViewById(R.id.about_text);
|
||||
license.setOnClickListener(
|
||||
new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Intent browserIntent =
|
||||
new Intent(
|
||||
Intent.ACTION_VIEW,
|
||||
Uri.parse(getString(R.string.about_license_link)));
|
||||
startActivity(browserIntent);
|
||||
}
|
||||
});
|
||||
|
||||
mSendLogButton = view.findViewById(R.id.send_log);
|
||||
mSendLogButton.setOnClickListener(this);
|
||||
mSendLogButton.setVisibility(
|
||||
|
|
|
@ -106,8 +106,8 @@
|
|||
android:textColorLink="@color/primary_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/privaci_policy_link"
|
||||
style="@style/link_font"
|
||||
android:id="@+id/privacy_policy_link"
|
||||
style="@style/about_license_font"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
|
|
@ -83,8 +83,8 @@
|
|||
android:textColorLink="@color/primary_color" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/privaci_policy_link"
|
||||
style="@style/link_font"
|
||||
android:id="@+id/privacy_policy_link"
|
||||
style="@style/about_license_font"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
<string name="download_link" translatable="false">https://linphone.org/download</string>
|
||||
<string name="recover_password_link" translatable="false">https://linphone.org/freesip/recover</string>
|
||||
<string name="about_privacy_policy_link" translatable="false">https://www.linphone.org/terms-and-privacy</string>
|
||||
<string name="about_license_link" translatable="false">https://www.gnu.org/licenses/old-licenses/gpl-2.0.html</string>
|
||||
|
||||
<!-- Textual mention of the app name -->
|
||||
<string name="user_agent" translatable="false">LinphoneAndroid</string>
|
||||
|
|
Loading…
Reference in a new issue