Skip to content

Commit

Permalink
Temporary workaround for wrong resume procedure (#19)
Browse files Browse the repository at this point in the history
The real fix still has to be done: check for onFocusChanged and onResume
on the activity to resume the content changed listener.

Signed-off-by: Daniele Ricci <[email protected]>
  • Loading branch information
daniele-athome committed Jul 6, 2014
1 parent b32e51c commit 3acccd9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/org/kontalk/ui/ComposeMessageFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -2069,6 +2069,10 @@ public void onResume() {
return;
}

// resume content watcher
if (mListAdapter != null)
mListAdapter.setOnContentChangedListener(mContentChangedListener);

// we are updating the status now
setActivityStatusUpdating();

Expand All @@ -2092,6 +2096,11 @@ public void onResume() {
@Override
public void onPause() {
super.onPause();

// pause content watcher
if (mListAdapter != null)
mListAdapter.setOnContentChangedListener(null);

CharSequence text = mTextEntry.getText();
int len = text.length();

Expand Down

0 comments on commit 3acccd9

Please sign in to comment.