1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-02 00:25:10 -04:00

Fix for the abiltiy to hit "Back" out of global preferences after

switching away from K-9 and back again.

Fixes issue 1791

Patch by fiouzy@gmail.com
This commit is contained in:
Jesse Vincent 2010-06-21 14:39:22 +00:00
parent 4a6b99b647
commit e485aa83c6

View File

@ -12,6 +12,7 @@ import android.view.KeyEvent;
import com.fsck.k9.K9;
import com.fsck.k9.Preferences;
import com.fsck.k9.R;
import com.fsck.k9.activity.Accounts;
import com.fsck.k9.activity.DateFormatter;
import com.fsck.k9.activity.K9PreferenceActivity;
import com.fsck.k9.service.MailService;
@ -228,6 +229,12 @@ public class Prefs extends K9PreferenceActivity
if (keyCode == KeyEvent.KEYCODE_BACK)
{
saveSettings();
if (K9.manageBack())
{
Accounts.listAccounts(this);
finish();
return true;
}
}
return super.onKeyDown(keyCode, event);
}