mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 05:09:53 +01:00
Pre-address potential review issues
This commit is contained in:
@@ -24,12 +24,13 @@ import javax.inject.Inject;
|
||||
|
||||
import static android.support.v4.app.ActivityOptionsCompat.makeCustomAnimation;
|
||||
import static android.widget.Toast.LENGTH_SHORT;
|
||||
import static org.briarproject.api.sync.SyncConstants.MAX_MESSAGE_BODY_LENGTH;
|
||||
|
||||
public class CreateGroupActivity extends ContactSelectorActivity implements
|
||||
CreateGroupListener, MessageFragmentListener {
|
||||
|
||||
@Inject
|
||||
protected CreateGroupController controller;
|
||||
CreateGroupController controller;
|
||||
|
||||
@Override
|
||||
public void injectActivity(ActivityComponent component) {
|
||||
@@ -144,6 +145,11 @@ public class CreateGroupActivity extends ContactSelectorActivity implements
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaximumMessageLength() {
|
||||
return MAX_MESSAGE_BODY_LENGTH;
|
||||
}
|
||||
|
||||
private void openNewGroup() {
|
||||
Intent i = new Intent(this, GroupActivity.class);
|
||||
i.putExtra(GROUP_ID, groupId.getBytes());
|
||||
|
||||
@@ -1,21 +1,24 @@
|
||||
package org.briarproject.android.privategroup.creation;
|
||||
|
||||
import android.support.annotation.StringRes;
|
||||
|
||||
import org.briarproject.R;
|
||||
import org.briarproject.android.ActivityComponent;
|
||||
import org.briarproject.android.sharing.BaseMessageFragment;
|
||||
|
||||
|
||||
public class CreateGroupMessageFragment extends BaseMessageFragment {
|
||||
|
||||
private final static String TAG =
|
||||
CreateGroupMessageFragment.class.getName();
|
||||
|
||||
@Override
|
||||
@StringRes
|
||||
protected int getButtonText() {
|
||||
return R.string.groups_create_group_invitation_button;
|
||||
}
|
||||
|
||||
@Override
|
||||
@StringRes
|
||||
protected int getHintText() {
|
||||
return R.string.forum_share_message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user