mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 08:52:18 -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:
parent
f7ccd50227
commit
5c48724425
@ -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);
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user