From ae3756ff570f2c274fca005c50028101aef176e9 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 9 Apr 2012 04:13:26 +0200 Subject: ActivityLauncher/LauncherUtil: Clear properties 'onDestroy()' --- src/java/jogamp/android/launcher/LauncherUtil.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/java/jogamp/android/launcher/LauncherUtil.java') diff --git a/src/java/jogamp/android/launcher/LauncherUtil.java b/src/java/jogamp/android/launcher/LauncherUtil.java index 63452b7..953a810 100644 --- a/src/java/jogamp/android/launcher/LauncherUtil.java +++ b/src/java/jogamp/android/launcher/LauncherUtil.java @@ -146,8 +146,14 @@ public class LauncherUtil { public final void setSystemProperties() { Iterator argKeys = keyList.iterator(); while(argKeys.hasNext()) { - final String key = argKeys.next(); - System.setProperty(key, map.get(key)); + final String key = argKeys.next(); + System.setProperty(key, map.get(key)); + } + } + public final void clearSystemProperties() { + Iterator argKeys = keyList.iterator(); + while(argKeys.hasNext()) { + System.clearProperty(argKeys.next()); } } @@ -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