mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 02:39:55 +01:00
Fix crash in getIntentForPinCreate(), show 'Create' in prefs.
This commit is contained in:
@@ -26,14 +26,16 @@ public class CreateKbsPinActivity extends BaseActionBarActivity {
|
||||
private final DynamicTheme dynamicTheme = new DynamicRegistrationTheme();
|
||||
|
||||
public static Intent getIntentForPinCreate(@NonNull Context context) {
|
||||
return new Intent(context, CreateKbsPinActivity.class);
|
||||
return getIntent(context, true);
|
||||
}
|
||||
|
||||
public static Intent getIntentForPinUpdate(@NonNull Context context) {
|
||||
Intent intent = getIntentForPinCreate(context);
|
||||
|
||||
intent.putExtra(IS_NEW_PIN, true);
|
||||
return getIntent(context, false);
|
||||
}
|
||||
|
||||
private static Intent getIntent(@NonNull Context context, boolean isNewPin) {
|
||||
Intent intent = new Intent(context, CreateKbsPinActivity.class);
|
||||
intent.putExtra(IS_NEW_PIN, isNewPin);
|
||||
return intent;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user