Commits

Andrey Voytenkov committed f6727a6

fixes #12 + minor bugfix

  • Participants
  • Parent commits 0508872
  • Tags release1.9.5

Comments (0)

Files changed (9)

File AndroidManifest.xml

 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     package="biz.gyrus.yaab"
-    android:versionCode="18"
-    android:versionName="1.9.4" >
+    android:versionCode="19"
+    android:versionName="1.9.5" >
 
     <uses-sdk
         android:minSdkVersion="8"

File res/values-de/strings.xml

 <resources>
 
-    <string name="app_name">YAAB(beta)</string>
+    <string name="app_name">YAAB</string>
     <string name="title_activity_main">Yet Another Auto Brightness</string>
     <string name="btn_start_text">Start</string>
     <string name="btn_stop_text">Stop</string>

File res/values-es/strings.xml

 <resources>
 
-    <string name="app_name">Auto Brillo (beta)</string>
-    <string name="title_activity_main">Otro Auto Brillo</string>
+    <string name="app_name">YAAB</string>
+    <string name="title_activity_main">YAAB</string>
     <string name="btn_start_text">Iniciar</string>
     <string name="btn_stop_text">Parar</string>
     <string name="cb_autostart_text">Iniciar en dispositivo</string>

File res/values-it/strings.xml

 <resources>
 
-	<string name="app_name">YAAB(beta)</string>
+	<string name="app_name">YAAB</string>
 	<string name="title_activity_main">Yet Another Auto Brightness</string>
 	<string name="btn_start_text">Avvia</string>
 	<string name="btn_stop_text">Ferma</string>

File res/values-ru/strings.xml

 <resources>
 
-    <string name="app_name">Автояркость (бета)</string>
+    <string name="app_name">Автояркость</string>
     <string name="title_activity_main">Еще Одна Автояркость</string>
     <string name="btn_start_text">Пуск</string>
     <string name="btn_stop_text">Стоп</string>

File res/values-uk/strings.xml

 <resources>
 
-    <string name="app_name">Автояскравість (бета)</string>
+    <string name="app_name">Автояскравість</string>
     <string name="title_activity_main">Ще Одна Автояскравість</string>
     <string name="btn_start_text">Пуск</string>
     <string name="btn_stop_text">Стоп</string>

File res/values-zh/strings.xml

 <resources>
 
-    <string name="app_name">又一自动亮度</string>
-    <string name="title_activity_main">又一自动亮度</string>
+    <string name="app_name">YAAB(beta)</string>
+    <string name="title_activity_main">YAAB自动亮度</string>
     <string name="btn_start_text">启动</string>
     <string name="btn_stop_text">停止</string>
-    <string name="cb_autostart_text">设备启动的开始</string>
-    <string name="cb_notificon_text">永久通知</string>
-    <string name="status_running">在运行</string>
-    <string name="status_stopped">停止了</string>
-    <string name="status_nosensor">没有光线感应器</string>
-    
-    <string name="toast_service_started">YAAB服务启动了</string>
-    <string name="toast_service_stopped">YAAB服务停止了</string>
-    
-    <string name="manual_adjust">手动调整</string>
+    <string name="cb_autostart_text">自动运行</string>
+    <string name="cb_notificon_text">通知栏图标</string>
+    <string name="status_running">正在运行</string>
+    <string name="status_stopped">已停止</string>
+    <string name="status_nosensor">没有光线传感器</string>
 
-    <string name="txt_howto_use">如何使用:点击“开始”,“运行”等待状态的变化。这就是一切。使用“手动调整”滑块以更改亮度平均水平,如果需要的话。\n\n自动夜间模式只可能工作如果设备的光线感应器能阅读低值。</string>
-    <string name="txt_nolightsensor_sorry">很抱歉,光线感应器不能在此设备上。该应用程序不是功能而不传感器。</string>
+    <string name="toast_service_started">YAAB服务已启动</string>
+    <string name="toast_service_stopped">YAAB服务已停止</string>
 
-    <string name="title_activity_credits">又一自动亮度</string>
-    <string name="activity_credits_txt_title">信息</string>
+    <string name="manual_adjust">手动调节</string>
+
+    <string name="txt_howto_use">使用方法: 点击“启动”按钮开启服务,使用“手动调节”滑块调节所需的平均亮度水平。\n\n“自动夜间模式”会在光线传感器读数很低时开启夜间模式。</string>
+    <string name="txt_nolightsensor_sorry">很抱歉,没有找到光线传感器,程序无法正常运行。</string>
+
+    <string name="title_activity_credits">YAAB自动亮度</string>
+    <string name="activity_credits_txt_title">鸣谢</string>
     <string name="activity_credits_txt_main">This application developed and supported by <a href="http://www.gyrus.biz/">Gyrus Solutions</a>.\nSource code and development builds are available at <a href="https://bitbucket.org/gyrussolutions/yaab/">BitBucket</a>.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</string>
     <string name="activity_credits_btn_close">关闭</string>
     
-    <string name="preferences">首选项</string>
-    <string name="cb_alwaysfg_text">始终保持在前景</string>
-    <string name="summary_autostart_preference">启动服务自动时启动设备</string>
-	<string name="summary_fgservice_preference">服务处于活动状态时显示通知图标</string>
-	<string name="summary_always_fgsrv_preference">即使屏幕关闭时,不要将服务切换到背景模式</string>
-	<string name="alert_keepalive_title">使用系统报警</string>
-	<string name="alert_keepalive_summary">保持一种活着的服务设施。实验性的。</string>
+    <string name="preferences">选项</string>
+    <string name="cb_alwaysfg_text">保持在前台</string>
+    <string name="summary_autostart_preference">开机自动启动YAAB服务</string>
+    <string name="summary_fgservice_preference">当服务活动时在通知栏显示图标</string>
+    <string name="summary_always_fgsrv_preference">屏幕关闭后不将服务切换到后台</string>
+    <string name="alert_keepalive_title">使用系统警报</string>
+    <string name="alert_keepalive_summary">保持服务处于活动状态(测试中)</string>
         
-	<string name="ranges_title">范围</string>
-	<string name="txt_night">夜间</string>
-	<string name="txt_normal">正常</string>
-	<string name="ranges_summary">最小值,最大值,阈值,夜间模式,亮度</string>
-	<string name="brightness_range_caption">亮度范围</string>
-    <string name="txt_min">最小亮度限制</string>
-    <string name="txt_max">最大亮度限制</string>    
-	<string name="night_reading_caption">夜读</string>
-	<string name="cb_autonight_text">自动夜间模式</string>
-	<string name="txt_night_threshold">夜间模式阈值</string>
-	<string name="txt_night_brightness">夜间模式亮度</string>
-	<string name="btn_night_test">考验</string>
-	<string name="txt_sensor_reading">最近光线感应器值:</string>
-	<string name="txt_threshold_value">当前阈值:</string>
-	<string name="txt_none">全无</string>
-	<string name="brightness_status_off">关</string>
-	<string name="brightness_status_auto">自动</string>
-	<string name="brightness_status_manualnight">夜间(手动)</string>
-	<string name="brightness_status_autonight">夜间</string>
-	<string name="txt_not_auto_note">请注意,因为该服务不是在自动模式下,如果您变其中的一些设置,您可能无发现立竿见影的效果。</string>
-	
-	<string name="cb_smooth_title">光滑的亮度</string>
-	<string name="cb_smooth_summary">适用于屏幕的亮度变化平缓</string>
-	
-</resources>
+    <string name="ranges_title">范围</string>
+    <string name="txt_night">夜间</string>
+    <string name="txt_normal">正常</string>
+    <string name="ranges_summary">最小值,最大值,阈值,夜间模式亮度</string>
+    <string name="brightness_range_caption">亮度范围</string>
+    <string name="txt_min">最小亮度</string>
+    <string name="txt_max">最大亮度</string>    
+    <string name="night_reading_caption">夜间模式</string>
+    <string name="cb_autonight_text">自动夜间模式</string>
+    <string name="txt_night_threshold">夜间模式阈值</string>
+    <string name="txt_night_brightness">夜间模式亮度</string>
+    <string name="btn_night_test">测试</string>
+    <string name="txt_sensor_reading">光线传感器数值:</string>
+    <string name="txt_threshold_value">当前阈值:</string>
+    <string name="txt_none">无</string>
+    <string name="brightness_status_off">关闭</string>
+    <string name="brightness_status_auto">自动</string>
+    <string name="brightness_status_manualnight">夜间(手动)</string>
+    <string name="brightness_status_autonight">夜间</string>
+    <string name="txt_not_auto_note">请注意,当前服务不是在自动模式下,您改变的设置可能无法立即生效。</string>
+
+    <string name="cb_smooth_title">平滑亮度</string>
+    <string name="cb_smooth_summary">防止屏幕亮度跳变</string>
+        	
+</resources>

File res/values/strings.xml

 <resources>
 
-    <string name="app_name">YAAB(beta)</string>
+    <string name="app_name">YAAB</string>
     <string name="title_activity_main">Yet Another Auto Brightness</string>
     <string name="btn_start_text">Start</string>
     <string name="btn_stop_text">Stop</string>

File src/biz/gyrus/yaab/MainActivity.java

 			_btnNight.setEnabled(true);
 			_btnNight.setText(BrightnessController.get().isForceNight()?R.string.txt_normal:R.string.txt_night);
 			
-			if(BrightnessController.get().getBrightnessStatus() == BrightnessStatus.ForceNight)
+			if(BrightnessController.get().getBrightnessStatus() == BrightnessStatus.ForceNight || BrightnessController.get().getBrightnessStatus() == BrightnessStatus.AutoNight)
 			{
 				_lblManualAdj.setText(R.string.txt_night_brightness);
 				_sbAdjLevel.setVisibility(View.GONE);