|
|
|
|
@ -43,6 +43,8 @@ import org.thoughtcrime.securesms.profiles.ProfileMediaConstraints;
|
|
|
|
|
import org.thoughtcrime.securesms.profiles.SystemProfileUtil;
|
|
|
|
|
import org.thoughtcrime.securesms.util.BitmapDecodingException;
|
|
|
|
|
import org.thoughtcrime.securesms.util.BitmapUtil;
|
|
|
|
|
import org.thoughtcrime.securesms.util.DynamicLanguage;
|
|
|
|
|
import org.thoughtcrime.securesms.util.DynamicTheme;
|
|
|
|
|
import org.thoughtcrime.securesms.util.IntentUtils;
|
|
|
|
|
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
|
|
|
|
import org.thoughtcrime.securesms.util.Util;
|
|
|
|
|
@ -73,6 +75,9 @@ public class CreateProfileActivity extends BaseActionBarActivity implements Inje
|
|
|
|
|
|
|
|
|
|
private static final int REQUEST_CODE_AVATAR = 1;
|
|
|
|
|
|
|
|
|
|
private final DynamicTheme dynamicTheme = new DynamicTheme();
|
|
|
|
|
private final DynamicLanguage dynamicLanguage = new DynamicLanguage();
|
|
|
|
|
|
|
|
|
|
@Inject SignalServiceAccountManager accountManager;
|
|
|
|
|
|
|
|
|
|
private InputAwareLayout container;
|
|
|
|
|
@ -91,6 +96,9 @@ public class CreateProfileActivity extends BaseActionBarActivity implements Inje
|
|
|
|
|
public void onCreate(Bundle bundle) {
|
|
|
|
|
super.onCreate(bundle);
|
|
|
|
|
|
|
|
|
|
dynamicTheme.onCreate(this);
|
|
|
|
|
dynamicLanguage.onCreate(this);
|
|
|
|
|
|
|
|
|
|
setContentView(R.layout.profile_create_activity);
|
|
|
|
|
|
|
|
|
|
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
|
|
|
|
|
@ -104,6 +112,13 @@ public class CreateProfileActivity extends BaseActionBarActivity implements Inje
|
|
|
|
|
ApplicationContext.getInstance(this).injectDependencies(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onResume() {
|
|
|
|
|
super.onResume();
|
|
|
|
|
dynamicTheme.onResume(this);
|
|
|
|
|
dynamicLanguage.onResume(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onBackPressed() {
|
|
|
|
|
if (container.isInputOpen()) container.hideCurrentInput(name);
|
|
|
|
|
|