Commit Graph

160 Commits

Author SHA1 Message Date
Sebastian Kaspari e378c6570b Update all broadcast sending to use LocalBroadcastManager.
This breaks a lot as the receiving part is not changed yet. But this is
a branch anyways ... so let's break stuff!
2013-02-06 23:14:59 +01:00
Sebastian Kaspari a39a4259ea Add setting to debug IRC traffic. Refs #91.
After this setting has been enabled all IRC traffic will be written
to the verbose log (only for new connections).
2013-01-29 21:35:48 +01:00
Sebastian Kaspari b479ac55dc MessageListView: Background is now in drawable folder. (Funny that this worked at all). 2013-01-22 21:35:12 +01:00
Sebastian Kaspari 48b12bff40 Update copyright line (2009-2013). 2013-01-21 21:32:43 +01:00
Sebastian Kaspari c1f2648628 Allow copy&paste of text in ConversationActivity. Fixes #118. 2013-01-21 21:21:49 +01:00
Sebastian Kaspari 81b7fe798c MessageListView: Set transcript mode to normal (Only automatically scroll if the last item is visible). Fixes #119. 2013-01-21 21:15:22 +01:00
Sebastian Kaspari 35a8d93cd0 IRCService: Extracting constants and reordering class members. 2012-10-04 19:15:18 +02:00
Daniel E. Moctezuma 89ff98b93d Added support for LED light notification on nickname highlight 2012-10-04 19:15:18 +02:00
Daniel E. Moctezuma 3f8578ef73 Replaced lowercase letters by uppercase ones on application name 2012-10-04 19:15:18 +02:00
jgeboski 1a43262cb5 Allow for forward slashes in idents 2012-07-31 08:08:36 +02:00
Sebastian Kaspari 56304633f4 SettingsActivity: Add up navigation. 2012-07-28 16:22:49 +02:00
Sebastian Kaspari da78ea15d0 AddServerActivity: Add up navigation. 2012-07-28 16:05:55 +02:00
Sebastian Kaspari 7c27b09298 ConversationIndicator: On updating colors invalidate title indicator. 2012-07-28 12:46:29 +02:00
Sebastian Kaspari 9c551d73bf New stateful ViewPagerIndicator.
Indicator showing the state of the current pages and off-screen pages by coloring.
2012-07-28 11:36:54 +02:00
Sebastian Kaspari 743eae9b85 Remove fullscreen option from settings.
There's no need anymore on new devices and the app should not cover the
notification bar.
2012-07-28 11:32:14 +02:00
Sebastian Kaspari 9884ef1bff DisplayUtils: Helper class for methods regarding the display of the current device. 2012-07-28 11:29:57 +02:00
Sebastian Kaspari debc79dd59 AboutActivity: Code clean up. Some small refactorings. 2012-07-28 10:32:54 +02:00
Sebastian Kaspari b32b24c4ba Add WTF smiley to mapping (o_O). Refs #114. 2012-07-14 23:02:43 +02:00
Sebastian Kaspari 8fc10e0419 ConversationActivity: Use same font size for EditText as for conversation. 2012-06-20 07:38:39 +02:00
Sebastian Kaspari c511e9bcc5 ConversationActivity: Do not disable menu items. Not needed with anymore with ActionBar. 2012-06-20 06:59:03 +02:00
Sebastian Kaspari 84c3025c26 ConversationActivity: Remove code to keep compatibility with api level 3. MinSdkVersion is 4. 2012-05-21 21:57:44 +02:00
Sebastian Kaspari 9a05d3b606 ConversationActivity: Do not determine density twice. 2012-05-21 21:53:30 +02:00
Sebastian Kaspari 8f329f475c Indicator: Do not set typeface twice. 2012-05-21 21:52:29 +02:00
Sebastian Kaspari f713466468 Update ViewPagerIndicator to 2.3.1. 2012-05-21 21:40:32 +02:00
Sebastian Kaspari 35b896c3d6 Workaround for a race condition in EditText implementation. Fixes #67. 2012-04-12 21:42:03 +02:00
Sebastian Kaspari 309c730b33 ServersActivity: Remove "Exit" from menu and replace by "Disconnect all". 2012-04-12 12:27:34 +02:00
Sebastian Kaspari 8ecb697f28 Use a Holo-like style for EditText fields. 2012-04-12 11:48:15 +02:00
Sebastian Kaspari 21032950b7 Update copright line (2009-2012). 2012-01-21 23:12:55 +01:00
Sebastian Kaspari fbdebc2ca5 Add ActionBarSherlock to all activities. Restructure menu items. Fixes #96. 2012-01-21 23:07:44 +01:00
Sebastian Kaspari 46a45523a8 IRCService: Use reflection to call setForeground() on old versions. 2012-01-21 12:59:02 +01:00
Sebastian Kaspari b09ba251ea ConversationActivity: Make text input smaller and more "flat". 2012-01-21 11:50:58 +01:00
Sebastian Kaspari 25cf7eb2ad ConversationActivity: Add ViewPagerIndicator. 2012-01-21 11:30:41 +01:00
Sebastian Kaspari 8386f4a1ef AddServerActivity: Disable auto-correction for the hostname field. Fixes #99. 2012-01-21 10:33:03 +01:00
Sebastian Kaspari ec90fe3db6 Make everything clickable in messages (links, email addresses, telephone numbers). 2012-01-21 08:57:28 +01:00
Sebastian Kaspari e04499070a Replace gallery view for conversations by ViewPager. Fixes #38. 2012-01-21 08:56:40 +01:00
Steven Luo 66006cabf5 Work around a crash on ICS when destroying a ConversationActivity
On Ice Cream Sandwich, something -- possibly even in the Android
framework classes (not in our code) -- is passing in null to a
MessageListAdapter's unregisterOnDataSetObserver(), which causes a
crash.

We should really find out whether this is something we can properly fix
or not, but in the meantime, wrap the superclass's method with our own
method which checks for null before calling through to the superclass
implementation.
2011-11-26 19:41:06 +01:00
Jonas Häggqvist 61e1681b03 Proper case insensitive nick completion (untested) 2011-11-18 13:48:41 +01:00
Francesco Lavra 0a8e75feff Add /back command (issue #89)
This patch adds the /back command, which turns off the away status.
This should close issue #89, https://github.com/pocmo/Yaaic/issues/89.
2011-09-05 08:41:55 +02:00
Steven Luo e07d99ed5d Remove views from DeckAdapter when corresponding conversation has gone missing
If a conversation disappears while the activity is paused (e.g. if the
user is kicked from a channel, or if another client attached to an
irssi-proxy has chosen to leave that channel), we currently aren't
removing the view from the DeckAdapter when we resume.  This results in
leaking a Conversation object until the user explicitly asks for the
conversation to be closed or the activity finishes, and is also
confusing because the user may not receive any indication that the
channel was parted in the first place.

There's a good case for leaving the MessageListView in place, with a
note indicating that the user has been kicked or parted from the
channel, but for that to work, we need to keep the Conversation object
in the server's list of conversations -- otherwise the behavior will
differ depending on whether the user left the activity via the Back
button or the Home button, which is counterintuitive.

For now, just remove the stale view from the DeckAdapter, which fixes
the leak and the potential user confusion.
2011-08-16 11:21:43 +02:00
Steven Luo f84369bc19 Add new conversations to DeckAdapter in onResume()
Currently, when the user opens a ConversationActivity, goes off to do
something else without closing it, and then comes back to the activity,
conversations started since the ConversationActivity was paused (e.g. by
an incoming private message) will not appear in the ConversationGallery;
this is because we never check for new conversations in the onResume()
path.

Fortunately, this is an easy fix: we're already looping over all the
conversations in onResume() in order to add new messages to the
MessageListViews, so just look out for the new conversations and add
them to the ConversationGallery when we see them.
2011-08-16 11:21:40 +02:00
Steven Luo c8266fbe62 Add method to remove conversation from DeckAdapter by position
This makes the following patch to remove old conversations much more
efficient.
2011-08-16 11:21:38 +02:00
Steven Luo fafbe1ca4a Display "Not connected" in notification instead of no text when not connected 2011-08-16 11:21:33 +02:00
Sebastian Kaspari 4396e66954 Bugfix: On updating an existing server configuration the real name was overwritten by the nick name 2011-07-17 16:07:24 +02:00
Sebastian Kaspari a357c42477 IRCService: suppress rawtype warning 2011-07-17 14:40:19 +02:00
Steven Luo 02316ffdbc Remove bottom padding in MessageListView onCreate()
If we're going to do this when changing to/from switched mode, we should
do it when creating a new MessageListView too.
2011-07-03 14:08:28 +02:00
Steven Luo ec17d34e4d Miscellaneous ConversationLayout cleanups
* Simplify control flow in onMeasure() by moving height adjusting to
  a separate method
* Various whitespace changes and comment updates
2011-07-03 14:06:41 +02:00
Steven Luo e0f90768b2 Remove bogus setImeOptions() in ConversationActivity
I thought this was removed when we moved the setImeOptions() further
down in onCreate(), but it's still here somehow.  This causes the Send
key on the keyboard to disappear when fullscreen IMEs are disabled.
2011-07-03 14:06:19 +02:00
Steven Luo d80f4133f1 Ack new mentions on part or kick from a channel
If we don't do this, the user is left with a new message notification
she can't clear, and we leak the Channel object.
2011-07-03 14:03:41 +02:00
Darren Salt 2759b00084 Add an informational message for when the MOTD is ignored. 2011-07-02 19:51:32 +02:00
Darren Salt 23ca120f0e Only ignore the MOTD once. 2011-07-02 19:49:19 +02:00