2015-10-13 21:44:01 -07:00
|
|
|
package org.thoughtcrime.securesms.components.reminder;
|
2014-08-04 13:13:47 -07:00
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.view.View.OnClickListener;
|
|
|
|
|
|
|
|
import org.thoughtcrime.securesms.RegistrationActivity;
|
2020-05-11 16:54:31 +10:00
|
|
|
|
|
|
|
import network.loki.messenger.R;
|
2014-08-04 13:13:47 -07:00
|
|
|
|
|
|
|
public class PushRegistrationReminder extends Reminder {
|
|
|
|
|
2018-02-01 19:22:48 -08:00
|
|
|
public PushRegistrationReminder(final Context context) {
|
2015-10-13 21:44:01 -07:00
|
|
|
super(context.getString(R.string.reminder_header_push_title),
|
2015-10-23 12:47:21 -07:00
|
|
|
context.getString(R.string.reminder_header_push_text));
|
2014-08-04 13:13:47 -07:00
|
|
|
|
2018-02-01 19:22:48 -08:00
|
|
|
final OnClickListener okListener = v -> {
|
|
|
|
Intent intent = new Intent(context, RegistrationActivity.class);
|
2018-03-11 17:12:42 -07:00
|
|
|
intent.putExtra(RegistrationActivity.RE_REGISTRATION_EXTRA, true);
|
2018-02-01 19:22:48 -08:00
|
|
|
context.startActivity(intent);
|
2014-08-04 13:13:47 -07:00
|
|
|
};
|
2015-03-11 14:23:45 -07:00
|
|
|
|
2014-08-04 13:13:47 -07:00
|
|
|
setOkListener(okListener);
|
2015-03-11 14:23:45 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isDismissable() {
|
|
|
|
return false;
|
2014-08-04 13:13:47 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public static boolean isEligible(Context context) {
|
2019-06-06 09:51:54 +10:00
|
|
|
return false;
|
2014-08-04 13:13:47 -07:00
|
|
|
}
|
|
|
|
}
|