1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-22 17:02:21 -05:00

Whitespace clean up and light refactoring

Conflicts:

	application/src/org/yaaic/activity/ConversationActivity.java
This commit is contained in:
Rey Rey 2011-07-02 18:02:50 +02:00 committed by Sebastian Kaspari
parent 84ade9fae4
commit f7ccd50227
6 changed files with 10 additions and 14 deletions

View File

@ -54,10 +54,10 @@
<string name="key_autocap_sentences">autocap_sentences</string> <string name="key_autocap_sentences">autocap_sentences</string>
<string name="default_autocap_sentences">false</string> <string name="default_autocap_sentences">false</string>
<string name="key_ime_extract">Large landscape input</string> <string name="key_ime_extract">ime_extract</string>
<string name="default_ime_extract">true</string> <string name="default_ime_extract">true</string>
<string name="key_fullscreen_conversation">Fullscreen chatting</string> <string name="key_fullscreen_conversation">fullscreen_conversations</string>
<string name="default_fullscreen_conversation">false</string> <string name="default_fullscreen_conversation">false</string>
<string name="key_history_size">history_size</string> <string name="key_history_size">history_size</string>

View File

@ -220,8 +220,8 @@
<string name="settings_autocorrect_text_desc">Use dictionary to autocorrect typed text in chat</string> <string name="settings_autocorrect_text_desc">Use dictionary to autocorrect typed text in chat</string>
<string name="settings_autocap_sentences_title">Auto-capitalize sentences</string> <string name="settings_autocap_sentences_title">Auto-capitalize sentences</string>
<string name="settings_autocap_sentences_desc">Automatically capitalize the first word of sentences</string> <string name="settings_autocap_sentences_desc">Automatically capitalize the first word of sentences</string>
<string name="settings_ime_extract_title">Large landscape input</string> <string name="settings_ime_extract_title">Fullscreen input in landscape</string>
<string name="settings_ime_extract_desc">Makes the landscape input field multilined</string> <string name="settings_ime_extract_desc">Use fullscreen keyboard when in landscape mode</string>
<string name="settings_fullscreen_conversation_title">Fullscreen chats</string> <string name="settings_fullscreen_conversation_title">Fullscreen chats</string>
<string name="settings_fullscreen_conversation_desc">Fullscreen the application when chatting</string> <string name="settings_fullscreen_conversation_desc">Fullscreen the application when chatting</string>
<string name="settings_history_size_title">History size</string> <string name="settings_history_size_title">History size</string>

View File

@ -58,9 +58,5 @@ public class AboutActivity extends Activity
startActivity(i); startActivity(i);
} }
}); });
} }
} }

View File

@ -252,14 +252,14 @@ public class ConversationActivity extends Activity implements ServiceConnection,
if (settings.autoCapSentences()) { if (settings.autoCapSentences()) {
setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES; setInputTypeFlags |= InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
} }
if (isLandscape && settings.imeExtract()) { if (isLandscape && !settings.imeExtract()) {
/* Replace the Enter key with a smiley instead of Send, to make it /* Replace the Enter key with a smiley instead of Send, to make it
more difficult to accidentally hit send more difficult to accidentally hit send
We'd like to do this in portrait too, but wouldn't have a Send We'd like to do this in portrait too, but wouldn't have a Send
button in that case */ button in that case */
setInputTypeFlags |= InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE; setInputTypeFlags |= InputType.TYPE_TEXT_VARIATION_SHORT_MESSAGE;
} else { } else {
input.setImeOptions(input.getImeOptions()); input.setImeOptions(input.getImeOptions() | EditorInfo.IME_FLAG_NO_EXTRACT_UI);
} }
input.setInputType(input.getInputType() | setInputTypeFlags); input.setInputType(input.getInputType() | setInputTypeFlags);

View File

@ -284,7 +284,7 @@ public class Settings
} }
/** /**
* Whether conversations should be viewed in Fullscreen glory * Whether the fullscreen keyboard should be used in landscape mode.
*/ */
public boolean imeExtract() public boolean imeExtract()
{ {
@ -295,7 +295,7 @@ public class Settings
} }
/** /**
* Whether conversations should be viewed in Fullscreen glory * Whether conversations should be viewed in Fullscreen glory.
*/ */
public boolean fullscreenConversations() public boolean fullscreenConversations()
{ {