1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 00:42:16 -05:00

Future proofed ime no extract support, enhanced performance of fullscreen patch.

Conflicts:

	application/src/org/yaaic/activity/ConversationActivity.java
This commit is contained in:
Rey Rey 2011-07-02 18:04:06 +02:00 committed by Sebastian Kaspari
parent f7ccd50227
commit 5c48724425
2 changed files with 6 additions and 3 deletions

View File

@ -258,8 +258,9 @@ public class ConversationActivity extends Activity implements ServiceConnection,
We'd like to do this in portrait too, but wouldn't have a Send
button in that case */
setInputTypeFlags |= InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
input.setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI);
} else {
input.setImeOptions(input.getImeOptions() | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
input.setImeOptions(input.getImeOptions() & EditorInfo.IME_FLAG_NO_EXTRACT_UI);
}
input.setInputType(input.getInputType() | setInputTypeFlags);

View File

@ -106,6 +106,10 @@ public class ConversationLayout extends LinearLayout
{
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
if(!fullscreen && !isLandscape){
return;
}
int height = getWindowHeight();
if (curHeight != height) {
curHeight = height;
@ -113,8 +117,6 @@ public class ConversationLayout extends LinearLayout
status = (ImageView) findViewById(R.id.status);
title = (TextView) findViewById(R.id.title);
final float scale = getResources().getDisplayMetrics().density;
android.util.Log.d("CONVO height",String.valueOf(height)+", Scale: "+String.valueOf(height*scale));
//Give us at least an inch, or we'll have to make sacrifices.
if (height < 160*scale) {