From 1ab2108279ede3b646ad2d410fd16368393c174e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 9 Apr 2012 04:50:50 +0200 Subject: Android: Cleanup AndroidWindow. NewtBaseActivity: Reset FPSCounter on resume, Sync LauncherUtil --- src/test/com/jogamp/opengl/test/android/LauncherUtil.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/test/com/jogamp') diff --git a/src/test/com/jogamp/opengl/test/android/LauncherUtil.java b/src/test/com/jogamp/opengl/test/android/LauncherUtil.java index f1f36589d..1f9c26b7b 100644 --- a/src/test/com/jogamp/opengl/test/android/LauncherUtil.java +++ b/src/test/com/jogamp/opengl/test/android/LauncherUtil.java @@ -150,6 +150,12 @@ public class LauncherUtil { System.setProperty(key, map.get(key)); } } + public final void clearSystemProperties() { + Iterator argKeys = keyList.iterator(); + while(argKeys.hasNext()) { + System.clearProperty(argKeys.next()); + } + } public final String getProperty(String key) { return map.get(key); } public final Map getProperties() { return map; } @@ -190,6 +196,9 @@ public class LauncherUtil { public final void setSystemProperties() { properties.setSystemProperties(); } + public final void clearSystemProperties() { + properties.clearSystemProperties(); + } public final String getProperty(String key) { return properties.getProperty(key); } public final OrderedProperties getProperties() { return properties; } public final List getPropertyKeys() { return properties.getPropertyKeys(); } -- cgit v1.2.3