|
|
@ -32,7 +32,6 @@ import android.view.ViewGroup;
|
|
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import androidx.annotation.Nullable;
|
|
|
|
import androidx.core.content.ContextCompat;
|
|
|
|
|
|
|
|
import androidx.lifecycle.ViewModelProvider;
|
|
|
|
import androidx.lifecycle.ViewModelProvider;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
import androidx.preference.PreferenceManager;
|
|
|
|
|
|
|
|
|
|
|
@ -45,6 +44,7 @@ import app.fedilab.android.R;
|
|
|
|
import app.fedilab.android.client.entities.api.Instance;
|
|
|
|
import app.fedilab.android.client.entities.api.Instance;
|
|
|
|
import app.fedilab.android.databinding.ActivityInstanceBinding;
|
|
|
|
import app.fedilab.android.databinding.ActivityInstanceBinding;
|
|
|
|
import app.fedilab.android.helper.Helper;
|
|
|
|
import app.fedilab.android.helper.Helper;
|
|
|
|
|
|
|
|
import app.fedilab.android.helper.ThemeHelper;
|
|
|
|
import app.fedilab.android.viewmodel.mastodon.InstancesVM;
|
|
|
|
import app.fedilab.android.viewmodel.mastodon.InstancesVM;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -69,13 +69,13 @@ public class InstanceActivity extends BaseActivity {
|
|
|
|
|
|
|
|
|
|
|
|
final SpannableString contentAbout = new SpannableString(getString(R.string.action_about_instance));
|
|
|
|
final SpannableString contentAbout = new SpannableString(getString(R.string.action_about_instance));
|
|
|
|
contentAbout.setSpan(new UnderlineSpan(), 0, contentAbout.length(), 0);
|
|
|
|
contentAbout.setSpan(new UnderlineSpan(), 0, contentAbout.length(), 0);
|
|
|
|
contentAbout.setSpan(new ForegroundColorSpan(ContextCompat.getColor(InstanceActivity.this, R.color.colorAccent)), 0, contentAbout.length(),
|
|
|
|
contentAbout.setSpan(new ForegroundColorSpan(ThemeHelper.getAttColor(this, R.attr.colorPrimary)), 0, contentAbout.length(),
|
|
|
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
binding.tos.setText(contentAbout);
|
|
|
|
binding.tos.setText(contentAbout);
|
|
|
|
|
|
|
|
|
|
|
|
final SpannableString contentPrivacy = new SpannableString(getString(R.string.action_privacy_policy));
|
|
|
|
final SpannableString contentPrivacy = new SpannableString(getString(R.string.action_privacy_policy));
|
|
|
|
contentPrivacy.setSpan(new UnderlineSpan(), 0, contentPrivacy.length(), 0);
|
|
|
|
contentPrivacy.setSpan(new UnderlineSpan(), 0, contentPrivacy.length(), 0);
|
|
|
|
contentPrivacy.setSpan(new ForegroundColorSpan(ContextCompat.getColor(InstanceActivity.this, R.color.colorAccent)), 0, contentPrivacy.length(),
|
|
|
|
contentPrivacy.setSpan(new ForegroundColorSpan(ThemeHelper.getAttColor(this, R.attr.colorPrimary)), 0, contentPrivacy.length(),
|
|
|
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
Spanned.SPAN_INCLUSIVE_EXCLUSIVE);
|
|
|
|
binding.privacy.setText(contentPrivacy);
|
|
|
|
binding.privacy.setText(contentPrivacy);
|
|
|
|
|
|
|
|
|
|
|
|