Source:
<code>protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.d("Y:" + this.getClass().getName(), "Start creating Message Activity"); setContentView(R.layout.activity_message); YieldsApplication.setApplicationContext(getApplicationContext()); YieldsApplication.setResources(getResources()); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); mActionBar = getSupportActionBar(); mActionBar.setDisplayHomeAsUpEnabled(true); mUser = YieldsApplication.getUser(); mGroup = YieldsApplication.getGroup(); mImage = null; mSendImage = false; mGroupMessageAdapter = new ListAdapterMessages(YieldsApplication .getApplicationContext(), R.layout.messagelayoutsender, new ArrayList<Message>()); mCommentAdapter = new ListAdapterMessages((YieldsApplication .getApplicationContext()), R.layout.messagelayoutsender, new ArrayList<Message>()); mInputField = (EditText) findViewById(R.id.inputMessageField); if (mUser == null || mGroup == null) { String message = "Couldn't get group information."; YieldsApplication.showToast(getApplicationContext(), message); mActionBar.setTitle("Unknown group"); } else { setHeaderBar(); } mSendButton = (ImageButton) findViewById(R.id.sendButton); mType = ContentType.GROUP_MESSAGES; mFragmentManager = getFragmentManager(); createGroupMessageFragment(); NodeHistoryRequest historyRequest = new NodeHistoryRequest(mGroup, new Date()); YieldsApplication.getBinder().sendRequest(historyRequest); mImageThumbnail = (ImageView) findViewById(R.id.imagethumbnail); mImageThumbnail.setPadding(0, 0, 0, 0); <START> Log.d("Y:" + this.getClass().getName(), "Start creating Message Activity"); <END> }</code><technical_language>2-times thing</technical_language>

Target:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_message); YieldsApplication.setApplicationContext(getApplicationContext()); YieldsApplication.setResources(getResources()); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); mActionBar = getSupportActionBar(); mActionBar.setDisplayHomeAsUpEnabled(true); mUser = YieldsApplication.getUser(); mGroup = YieldsApplication.getGroup(); mImage = null; mSendImage = false; mGroupMessageAdapter = new ListAdapterMessages(YieldsApplication .getApplicationContext(), R.layout.messagelayoutsender, new ArrayList<Message>()); mCommentAdapter = new ListAdapterMessages((YieldsApplication .getApplicationContext()), R.layout.messagelayoutsender, new ArrayList<Message>()); mInputField = (EditText) findViewById(R.id.inputMessageField); if (mUser == null || mGroup == null) { String message = "Couldn't get group information."; YieldsApplication.showToast(getApplicationContext(), message); mActionBar.setTitle("Unknown group"); } else { setHeaderBar(); } mSendButton = (ImageButton) findViewById(R.id.sendButton); mType = ContentType.GROUP_MESSAGES; mFragmentManager = getFragmentManager(); createGroupMessageFragment(); NodeHistoryRequest historyRequest = new NodeHistoryRequest(mGroup, new Date()); YieldsApplication.getBinder().sendRequest(historyRequest); mImageThumbnail = (ImageView) findViewById(R.id.imagethumbnail); mImageThumbnail.setPadding(0, 0, 0, 0); }