2cb21bcb87
For a long time Quicksy had a privacy policy written by myself that explains in plain English what data we store and how we use it. https://quicksy.im/#privacy Google doesn’t like that and prefers that we use some bullshit template that is extremely vague, doesn’t explain anything and gives us permission to do basically everything. (At least I think so. I don’t understand the text I copy pasted) Apparantly the text in the app is important as well (BARD didn’t explain that very well when it reviewed our app) therfor we need a static text (not allow translations) Furthermore the data safety section on Google Play now claims we store the users address book even though we don’t actually. But who cares; nobody reads this and we just do this to make the machine happy. Cool!
78 lines
2.3 KiB
Java
78 lines
2.3 KiB
Java
package eu.siacs.conversations.ui;
|
|
|
|
import android.content.Intent;
|
|
import android.content.SharedPreferences;
|
|
import android.content.pm.ActivityInfo;
|
|
import android.os.Bundle;
|
|
import android.preference.PreferenceManager;
|
|
import android.text.Html;
|
|
import android.text.method.LinkMovementMethod;
|
|
import android.widget.Button;
|
|
import android.widget.TextView;
|
|
|
|
import androidx.appcompat.app.ActionBar;
|
|
|
|
import eu.siacs.conversations.R;
|
|
|
|
public class TosActivity extends XmppActivity {
|
|
|
|
@Override
|
|
protected void refreshUiReal() {
|
|
|
|
}
|
|
|
|
@Override
|
|
void onBackendConnected() {
|
|
|
|
}
|
|
|
|
@Override
|
|
public void onStart() {
|
|
super.onStart();
|
|
final int theme = findTheme();
|
|
if (this.mTheme != theme) {
|
|
recreate();
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void onNewIntent(Intent intent) {
|
|
super.onNewIntent(intent);
|
|
if (intent != null) {
|
|
setIntent(intent);
|
|
}
|
|
}
|
|
|
|
@Override
|
|
protected void onCreate(final Bundle savedInstanceState) {
|
|
if (getResources().getBoolean(R.bool.portrait_only)) {
|
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
|
|
}
|
|
super.onCreate(savedInstanceState);
|
|
setContentView(R.layout.activity_tos);
|
|
setSupportActionBar(findViewById(R.id.toolbar));
|
|
final ActionBar ab = getSupportActionBar();
|
|
if (ab != null) {
|
|
ab.setDisplayShowHomeEnabled(false);
|
|
ab.setDisplayHomeAsUpEnabled(false);
|
|
}
|
|
final Button agreeButton = findViewById(R.id.agree);
|
|
final TextView welcomeText = findViewById(R.id.welcome_text);
|
|
agreeButton.setOnClickListener(v -> {
|
|
final Intent intent = new Intent(this, EnterPhoneNumberActivity.class);
|
|
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
|
|
preferences.edit().putBoolean("tos", true).apply();
|
|
addInviteUri(intent);
|
|
startActivity(intent);
|
|
finish();
|
|
});
|
|
welcomeText.setText(Html.fromHtml(getString(R.string.welcome_text_quicksy_static)));
|
|
welcomeText.setMovementMethod(LinkMovementMethod.getInstance());
|
|
|
|
}
|
|
|
|
public void addInviteUri(Intent intent) {
|
|
StartConversationActivity.addInviteUri(intent, getIntent());
|
|
}
|
|
}
|