mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-23 16:37:30 +00:00
35 lines
923 B
Java
35 lines
923 B
Java
package org.thoughtcrime.securesms.components.reminder;
|
|
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.view.View.OnClickListener;
|
|
|
|
import org.thoughtcrime.securesms.RegistrationActivity;
|
|
|
|
import network.loki.messenger.R;
|
|
|
|
public class PushRegistrationReminder extends Reminder {
|
|
|
|
public PushRegistrationReminder(final Context context) {
|
|
super(context.getString(R.string.reminder_header_push_title),
|
|
context.getString(R.string.reminder_header_push_text));
|
|
|
|
final OnClickListener okListener = v -> {
|
|
Intent intent = new Intent(context, RegistrationActivity.class);
|
|
intent.putExtra(RegistrationActivity.RE_REGISTRATION_EXTRA, true);
|
|
context.startActivity(intent);
|
|
};
|
|
|
|
setOkListener(okListener);
|
|
}
|
|
|
|
@Override
|
|
public boolean isDismissable() {
|
|
return false;
|
|
}
|
|
|
|
public static boolean isEligible(Context context) {
|
|
return false;
|
|
}
|
|
}
|