NotSupported: Fix links

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Samuel Holland 2017-11-28 20:15:50 -06:00
parent 8ba902ae99
commit 49df1ebc40

View File

@ -6,6 +6,7 @@ import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.text.Html; import android.text.Html;
import android.text.Spanned; import android.text.Spanned;
import android.text.method.LinkMovementMethod;
import com.wireguard.android.databinding.NotSupportedActivityBinding; import com.wireguard.android.databinding.NotSupportedActivityBinding;
@ -21,6 +22,7 @@ public class NotSupportedActivity extends Activity {
messageText = Html.fromHtml(messageHtml, Html.FROM_HTML_MODE_COMPACT); messageText = Html.fromHtml(messageHtml, Html.FROM_HTML_MODE_COMPACT);
else else
messageText = Html.fromHtml(messageHtml); messageText = Html.fromHtml(messageHtml);
binding.notSupportedMessage.setMovementMethod(LinkMovementMethod.getInstance());
binding.notSupportedMessage.setText(messageText); binding.notSupportedMessage.setText(messageText);
} }
} }