Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[New Feature - 3.5] Show date time picker with a dialog style (configurable) #124

Closed
wants to merge 1 commit into from

2 participants

Keith Gable genywind
Keith Gable

See #122 for more information.

genywind

feature was dropped from 4.0

genywind genywind closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 22, 2013
  1. Keith Gable
This page is out of date. Refresh to see the latest.
9 platform/android/Rhodes/AndroidManifest.xml.erb
View
@@ -52,7 +52,14 @@
<activity android:name='com.rhomobile.rhodes.camera.FileList' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.camera.ImageCapture' android:windowSoftInputMode='stateAlwaysHidden' android:screenOrientation='landscape'/>
<activity android:name='com.rhomobile.rhodes.signature.ImageCapture' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
- <activity android:name='com.rhomobile.rhodes.datetime.DateTimePickerScreen' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
+ <activity android:name='com.rhomobile.rhodes.datetime.DateTimePickerScreen'
+ <% if @dateTimePickerDialog %>
+ android:theme="@android:style/Theme.Dialog"
+ <% end %>
+ android:windowSoftInputMode='stateAlwaysHidden'
+ android:configChanges='orientation'
+ android:screenOrientation='<%= @screenOrientation %>'
+ />
<activity android:name='com.rhomobile.rhodes.mapview.MapView' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.mapview.GoogleMapView' android:windowSoftInputMode='stateAlwaysHidden' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
<activity android:name='com.rhomobile.rhodes.bluetooth.RhoBluetoothDeviceListActivity' android:configChanges='orientation' android:screenOrientation='<%= @screenOrientation %>'/>
2  platform/android/build/android.rake
View
@@ -198,6 +198,7 @@ namespace "config" do
$gapikey = nil if $gapikey.empty?
$android_orientation = $app_config["android"]["orientation"] unless $app_config["android"].nil?
+ $android_date_time_picker_dialog = $app_config["android"]["date_time_picker_dialog"] unless $app_config["android"].nil? || $app_config["android"]["date_time_picker_dialog"].nil?
$use_geomapping = $app_config["android"]["mapping"] unless $app_config["android"].nil?
$use_geomapping = $config["android"]["mapping"] if $use_geomapping.nil? and not $config["android"].nil?
@@ -1237,6 +1238,7 @@ namespace "build" do
generator.installLocation = 'auto'
generator.minSdkVer = $min_sdk_level
generator.maxSdkVer = $max_sdk_level
+ generator.dateTimePickerDialog = $android_date_time_picker_dialog unless $android_date_time_picker_dialog.nil?
generator.usesLibraries['com.google.android.maps'] = true if $use_google_addon_api
2  platform/android/build/manifest_generator.rb
View
@@ -15,6 +15,7 @@ class ManifestGenerator
attr_accessor :screenOrientation
attr_accessor :debuggable
attr_accessor :rhodesActivityIntentFilters
+ attr_accessor :dateTimePickerDialog
attr_accessor :manifestManifestAdds
attr_accessor :applicationManifestAdds
@@ -39,6 +40,7 @@ def initialize(javaPackage, appPackage, hidden, permissions, features = {})
@debuggable = 'false'
@manifestManifestAdds = []
@applicationManifestAdds = []
+ @dateTimePickerDialog = false
end
def addGoogleMaps
Something went wrong with that request. Please try again.