Android: remove trailing spaces
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 16 Jan 2019 09:12:31 +0100
changeset 1255008ef17bb974a
parent 12549 787e86a461f5
child 12551 90d2f58dcf0a
Android: remove trailing spaces
android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Wed Jan 16 09:11:13 2019 +0100
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java	Wed Jan 16 09:12:31 2019 +0100
     1.3 @@ -500,7 +500,7 @@
     1.4                      mSDLThread = new Thread(new SDLMain(), "SDLThread");
     1.5                      mSurface.enableSensor(Sensor.TYPE_ACCELEROMETER, true);
     1.6                      mSDLThread.start();
     1.7 -                    
     1.8 +
     1.9                      // No nativeResume(), don't signal Android_ResumeSem
    1.10                      mSurface.handleResume();
    1.11                  } else {
    1.12 @@ -572,7 +572,7 @@
    1.13                                          View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
    1.14                                          View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
    1.15                                          View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.INVISIBLE;
    1.16 -                            window.getDecorView().setSystemUiVisibility(flags);        
    1.17 +                            window.getDecorView().setSystemUiVisibility(flags);
    1.18                              window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
    1.19                              window.clearFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
    1.20                              SDLActivity.mFullscreenModeActive = true;
    1.21 @@ -597,7 +597,7 @@
    1.22  
    1.23                      InputMethodManager imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
    1.24                      imm.hideSoftInputFromWindow(mTextEdit.getWindowToken(), 0);
    1.25 -                    
    1.26 +
    1.27                      mScreenKeyboardShown = false;
    1.28                  }
    1.29                  break;
    1.30 @@ -664,14 +664,14 @@
    1.31              // or 500ms have passed.
    1.32  
    1.33              boolean bShouldWait = false;
    1.34 -            
    1.35 +
    1.36              if (data instanceof Integer) {
    1.37                  // Let's figure out if we're already laid out fullscreen or not.
    1.38                  Display display = ((WindowManager)getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();
    1.39                  android.util.DisplayMetrics realMetrics = new android.util.DisplayMetrics();
    1.40                  display.getRealMetrics( realMetrics );
    1.41 -        
    1.42 -                boolean bFullscreenLayout = ((realMetrics.widthPixels == mSurface.getWidth()) && 
    1.43 +
    1.44 +                boolean bFullscreenLayout = ((realMetrics.widthPixels == mSurface.getWidth()) &&
    1.45                                               (realMetrics.heightPixels == mSurface.getHeight()));
    1.46  
    1.47                  if (((Integer)data).intValue() == 1) {
    1.48 @@ -696,7 +696,7 @@
    1.49                  // size we need, instead of grabbing a size that's still got
    1.50                  // the navigation and/or status bars before they're hidden.
    1.51                  //
    1.52 -                // We'll wait for up to half a second, because some devices 
    1.53 +                // We'll wait for up to half a second, because some devices
    1.54                  // take a surprisingly long time for the surface resize, but
    1.55                  // then we'll just give up and return.
    1.56                  //
    1.57 @@ -760,7 +760,7 @@
    1.58      /**
    1.59       * This method is called by SDL using JNI.
    1.60       * This is a static method for JNI convenience, it calls a non-static method
    1.61 -     * so that is can be overridden  
    1.62 +     * so that is can be overridden
    1.63       */
    1.64      public static void setOrientation(int w, int h, boolean resizable, String hint)
    1.65      {
    1.66 @@ -768,11 +768,11 @@
    1.67              mSingleton.setOrientationBis(w, h, resizable, hint);
    1.68          }
    1.69      }
    1.70 -   
    1.71 +
    1.72      /**
    1.73       * This can be overridden
    1.74       */
    1.75 -    public void setOrientationBis(int w, int h, boolean resizable, String hint) 
    1.76 +    public void setOrientationBis(int w, int h, boolean resizable, String hint)
    1.77      {
    1.78          int orientation = -1;
    1.79  
    1.80 @@ -812,7 +812,7 @@
    1.81      /**
    1.82       * This method is called by SDL using JNI.
    1.83       */
    1.84 -    public static boolean isScreenKeyboardShown() 
    1.85 +    public static boolean isScreenKeyboardShown()
    1.86      {
    1.87          if (mTextEdit == null) {
    1.88              return false;
    1.89 @@ -837,7 +837,7 @@
    1.90              return false;
    1.91          }
    1.92  
    1.93 -        // DeX mode in Samsung Experience 9.0 and earlier doesn't support relative mice properly under 
    1.94 +        // DeX mode in Samsung Experience 9.0 and earlier doesn't support relative mice properly under
    1.95          // Android 7 APIs, and simply returns no data under Android 8 APIs.
    1.96          //
    1.97          // This is fixed in Samsung Experience 9.5, which corresponds to Android 8.1.0, and
    1.98 @@ -919,7 +919,7 @@
    1.99       */
   1.100      public static boolean isChromebook() {
   1.101          return getContext().getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
   1.102 -    }    
   1.103 +    }
   1.104  
   1.105      /**
   1.106       * This method is called by SDL using JNI.
   1.107 @@ -965,7 +965,7 @@
   1.108                  }
   1.109              }
   1.110              /* environment variables set! */
   1.111 -            return true; 
   1.112 +            return true;
   1.113          } catch (Exception e) {
   1.114             Log.v("SDL", "exception " + e.toString());
   1.115          }
   1.116 @@ -973,7 +973,7 @@
   1.117      }
   1.118  
   1.119      // This method is called by SDLControllerManager's API 26 Generic Motion Handler.
   1.120 -    public static View getContentView() 
   1.121 +    public static View getContentView()
   1.122      {
   1.123          return mSingleton.mLayout;
   1.124      }
   1.125 @@ -1028,7 +1028,7 @@
   1.126      }
   1.127  
   1.128      public static boolean isTextInputEvent(KeyEvent event) {
   1.129 -      
   1.130 +
   1.131          // Key pressed with Ctrl should be sent as SDL_KEYDOWN/SDL_KEYUP and not SDL_TEXTINPUT
   1.132          if (event.isCtrlPressed()) {
   1.133              return false;
   1.134 @@ -1370,7 +1370,7 @@
   1.135              }
   1.136  
   1.137          }
   1.138 -    }    
   1.139 +    }
   1.140  
   1.141      /**
   1.142       * This method is called by SDL using JNI.
   1.143 @@ -1870,7 +1870,7 @@
   1.144              // Since we may have an orientation set, we won't receive onConfigurationChanged events.
   1.145              // We thus should check here.
   1.146              int newOrientation = SDLActivity.SDL_ORIENTATION_UNKNOWN;
   1.147 -    
   1.148 +
   1.149              float x, y;
   1.150              switch (mDisplay.getRotation()) {
   1.151                  case Surface.ROTATION_90:
   1.152 @@ -1904,7 +1904,7 @@
   1.153                                        y / SensorManager.GRAVITY_EARTH,
   1.154                                        event.values[2] / SensorManager.GRAVITY_EARTH);
   1.155  
   1.156 -            
   1.157 +
   1.158          }
   1.159      }
   1.160  
   1.161 @@ -1972,7 +1972,7 @@
   1.162  
   1.163      @Override
   1.164      public boolean onKey(View v, int keyCode, KeyEvent event) {
   1.165 -        /* 
   1.166 +        /*
   1.167           * This handles the hardware keyboard input
   1.168           */
   1.169          if (event.getAction() == KeyEvent.ACTION_DOWN) {
   1.170 @@ -2092,7 +2092,7 @@
   1.171              while (beforeLength-- > 0) {
   1.172                 boolean ret_key = sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_DEL))
   1.173                                && sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, KeyEvent.KEYCODE_DEL));
   1.174 -               ret = ret && ret_key; 
   1.175 +               ret = ret && ret_key;
   1.176              }
   1.177              return ret;
   1.178          }
   1.179 @@ -2111,7 +2111,7 @@
   1.180  
   1.181  
   1.182  class SDLClipboardHandler_API11 implements
   1.183 -    SDLClipboardHandler, 
   1.184 +    SDLClipboardHandler,
   1.185      android.content.ClipboardManager.OnPrimaryClipChangedListener {
   1.186  
   1.187      protected android.content.ClipboardManager mClipMgr;
   1.188 @@ -2142,7 +2142,7 @@
   1.189         mClipMgr.setText(string);
   1.190         mClipMgr.addPrimaryClipChangedListener(this);
   1.191      }
   1.192 -    
   1.193 +
   1.194      @Override
   1.195      public void onPrimaryClipChanged() {
   1.196          SDLActivity.onNativeClipboardChanged();