From 7fe416e9436a7b2a00e27e73ceb725de4e763f30 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 9 Jun 2009 01:42:15 -0700 Subject: [PATCH] Fix bug in saving gestures stores. The outputstream was wrapping itself, thus causing huge problems. --- api/current.xml | 223 ++------------------ core/java/android/gesture/GestureStore.java | 4 +- 2 files changed, 22 insertions(+), 205 deletions(-) diff --git a/api/current.xml b/api/current.xml index c98a5c4a7f3de..ebbdf39de0d11 100644 --- a/api/current.xml +++ b/api/current.xml @@ -2081,7 +2081,7 @@ type="int" transient="false" volatile="false" - value="16843393" + value="16843392" static="true" final="true" deprecated="not deprecated" @@ -2323,7 +2323,7 @@ type="int" transient="false" volatile="false" - value="16843392" + value="16843391" static="true" final="true" deprecated="not deprecated" @@ -3518,6 +3518,17 @@ visibility="public" > + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > maps = mNamedGestures; - out = new DataOutputStream((stream instanceof BufferedOutputStream) ? out : - new BufferedOutputStream(out, GestureConstants.IO_BUFFER_SIZE)); + out = new DataOutputStream((stream instanceof BufferedOutputStream) ? stream : + new BufferedOutputStream(stream, GestureConstants.IO_BUFFER_SIZE)); // Write version number out.writeShort(FILE_FORMAT_VERSION); // Write number of entries