Skip to content
Browse files

Code refactoring.

  • Loading branch information...
1 parent 4eda26e commit c10cf82e2f0356d405373b3f006cefcc65bea1b9 @jachoi jachoi committed Feb 1, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 api/system.event/src/main/java/blackberry/system/event/KeyPressHandler.java
View
20 api/system.event/src/main/java/blackberry/system/event/KeyPressHandler.java
@@ -125,24 +125,24 @@ public boolean keyDown( int keycode, int time ) {
private void isDialogUp() {
_app = UiApplication.getUiApplication();
if( _app.isEventThread() ) {
- if( _app.getActiveScreen().getScreenBelow() == null ) {
- _dialogUp = false;
- } else {
- _dialogUp = true;
- }
+ isDialogUpHelper();
} else {
_app.invokeLater( new Runnable() {
public void run() {
- if( _app.getActiveScreen().getScreenBelow() == null ) {
- _dialogUp = false;
- } else {
- _dialogUp = true;
- }
+ isDialogUpHelper();
}
} );
}
}
+ public void isDialogUpHelper() {
+ if( _app.getActiveScreen().getScreenBelow() == null ) {
+ _dialogUp = false;
+ } else {
+ _dialogUp = true;
+ }
+ }
+
/**
* @see net.rim.device.api.system.KeyListener#keyChar(char, int, int)
*/

1 comment on commit c10cf82

@tohman
tohman commented on c10cf82 Feb 1, 2012

Looks good.

Please sign in to comment.
Something went wrong with that request. Please try again.