summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/android/GluegenVersionActivity.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
committerSven Gothel <[email protected]>2014-07-03 16:06:47 +0200
commitdf9ff7f340a5ab4e07efc613f5f264eeae63d4c7 (patch)
tree239ae276b82024b140428e6c0fe5d739fdd686a4 /src/java/jogamp/common/os/android/GluegenVersionActivity.java
parenteb47aaba63e3b1bf55f274a0f338f1010a017ae4 (diff)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74)
Code Clean-Up based on our Recommended Settings (jogamp-scripting c47bc86ae2ee268a1f38c5580d11f93d7f8d6e74) - Change non static accesses to static members using declaring type - Change indirect accesses to static members to direct accesses (accesses through subtypes) - Add final modifier to private fields - Add final modifier to method parameters - Add final modifier to local variables - Remove unnecessary casts - Remove unnecessary '$NON-NLS$' tags - Remove trailing white spaces on all lines
Diffstat (limited to 'src/java/jogamp/common/os/android/GluegenVersionActivity.java')
-rw-r--r--src/java/jogamp/common/os/android/GluegenVersionActivity.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/java/jogamp/common/os/android/GluegenVersionActivity.java b/src/java/jogamp/common/os/android/GluegenVersionActivity.java
index 5db3213..c216867 100644
--- a/src/java/jogamp/common/os/android/GluegenVersionActivity.java
+++ b/src/java/jogamp/common/os/android/GluegenVersionActivity.java
@@ -28,6 +28,8 @@
package jogamp.common.os.android;
+import jogamp.common.os.PlatformPropsImpl;
+
import com.jogamp.common.GlueGenVersion;
import com.jogamp.common.os.Platform;
import com.jogamp.common.util.VersionUtil;
@@ -42,7 +44,7 @@ public class GluegenVersionActivity extends Activity {
TextView tv = null;
@Override
- public void onCreate(Bundle savedInstanceState) {
+ public void onCreate(final Bundle savedInstanceState) {
Log.d(MD.TAG, "onCreate - S");
super.onCreate(savedInstanceState);
StaticContext.init(this.getApplicationContext());
@@ -54,7 +56,7 @@ public class GluegenVersionActivity extends Activity {
scroller.addView(tv);
setContentView(scroller);
- tv.setText(VersionUtil.getPlatformInfo()+Platform.NEWLINE+GlueGenVersion.getInstance()+Platform.NEWLINE+Platform.NEWLINE);
+ tv.setText(VersionUtil.getPlatformInfo()+PlatformPropsImpl.NEWLINE+GlueGenVersion.getInstance()+PlatformPropsImpl.NEWLINE+PlatformPropsImpl.NEWLINE);
Log.d(MD.TAG, "onCreate - X");
}
@@ -63,7 +65,7 @@ public class GluegenVersionActivity extends Activity {
Log.d(MD.TAG, "onStart - S");
super.onStart();
if(null != tv) {
- tv.append("> started"+Platform.NEWLINE);
+ tv.append("> started"+PlatformPropsImpl.NEWLINE);
}
Log.d(MD.TAG, "onStart - X");
}
@@ -73,7 +75,7 @@ public class GluegenVersionActivity extends Activity {
Log.d(MD.TAG, "onRestart - S");
super.onRestart();
if(null != tv) {
- tv.append("> restarted"+Platform.NEWLINE);
+ tv.append("> restarted"+PlatformPropsImpl.NEWLINE);
}
Log.d(MD.TAG, "onRestart - X");
}
@@ -82,7 +84,7 @@ public class GluegenVersionActivity extends Activity {
public void onResume() {
Log.d(MD.TAG, "onResume - S");
if(null != tv) {
- tv.append("> resumed"+Platform.NEWLINE);
+ tv.append("> resumed"+PlatformPropsImpl.NEWLINE);
}
super.onResume();
Log.d(MD.TAG, "onResume - X");
@@ -92,7 +94,7 @@ public class GluegenVersionActivity extends Activity {
public void onPause() {
Log.d(MD.TAG, "onPause - S");
if(null != tv) {
- tv.append("> paused"+Platform.NEWLINE);
+ tv.append("> paused"+PlatformPropsImpl.NEWLINE);
}
super.onPause();
// Log.d(MD.TAG, "onPause - x");
@@ -104,7 +106,7 @@ public class GluegenVersionActivity extends Activity {
public void onStop() {
Log.d(MD.TAG, "onStop - S");
if(null != tv) {
- tv.append("> stopped"+Platform.NEWLINE);
+ tv.append("> stopped"+PlatformPropsImpl.NEWLINE);
}
super.onStop();
Log.d(MD.TAG, "onStop - X");
@@ -114,7 +116,7 @@ public class GluegenVersionActivity extends Activity {
public void onDestroy() {
Log.d(MD.TAG, "onDestroy - S");
if(null != tv) {
- tv.append("> destroyed"+Platform.NEWLINE);
+ tv.append("> destroyed"+PlatformPropsImpl.NEWLINE);
}
Log.d(MD.TAG, "onDestroy - x");
StaticContext.clear();