cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtan...@apache.org
Subject webworks commit: normalizing device value for blackberry java
Date Fri, 16 Nov 2012 15:18:57 GMT
Updated Branches:
  refs/heads/master bad44d869 -> 721f55138


normalizing device value for blackberry java


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/721f5513
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/721f5513
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/721f5513

Branch: refs/heads/master
Commit: 721f5513857db4bbc3c42c8712472b1153ea6ba0
Parents: bad44d8
Author: Gord Tanner <gtanner@gmail.com>
Authored: Fri Nov 16 10:17:19 2012 -0500
Committer: Gord Tanner <gtanner@gmail.com>
Committed: Fri Nov 16 10:17:19 2012 -0500

----------------------------------------------------------------------
 .../ext/src/org/apache/cordova/device/Device.java  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/721f5513/framework/ext/src/org/apache/cordova/device/Device.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/device/Device.java b/framework/ext/src/org/apache/cordova/device/Device.java
index 6938c1e..25320f3 100644
--- a/framework/ext/src/org/apache/cordova/device/Device.java
+++ b/framework/ext/src/org/apache/cordova/device/Device.java
@@ -51,7 +51,7 @@ public final class Device extends Plugin {
 		if(action.equals(ACTION_GET_DEVICE_INFO)){
 			try {
 				JSONObject device = new JSONObject();
-				device.put( FIELD_PLATFORM, new String(DeviceInfo.getPlatformVersion() ) );
+				device.put( FIELD_PLATFORM, "BlackBerry");
 				device.put( FIELD_UUID, new Integer( DeviceInfo.getDeviceId()) );
 				device.put( FIELD_CORDOVA, "2.2.0" );
 				device.put( FIELD_NAME, new String(DeviceInfo.getDeviceName()) );


Mime
View raw message