知識
不管是網(wǎng)站,軟件還是小程序,都要直接或間接能為您產(chǎn)生價值,我們在追求其視覺表現(xiàn)的同時,更側(cè)重于功能的便捷,營銷的便利,運營的高效,讓網(wǎng)站成為營銷工具,讓軟件能切實提升企業(yè)內(nèi)部管理水平和效率。優(yōu)秀的程序為后期升級提供便捷的支持!
長按power鍵彈出關(guān)機菜單,點擊關(guān)機會彈出提示框,點擊
發(fā)表時間:2020-11-13
發(fā)布人:葵宇科技
瀏覽次數(shù):80
--- a/idh.code/frameworks/base/core/res/res/values-es/strings.xml +++ b/idh.code/frameworks/base/core/res/res/values-es/strings.xml @@ -1710,5 +1710,5 @@ <string name="station_state_connected">"Stación %1$s esta conectada"</string> <string name="station_state_disconnected">"Stación %1$s esta desconectada"</string> <string name="station_state_msg">"%1$s conectada, %2$s bloquada"</string> - + <string name="reboot_confirm" product="default">Usted teléfono voluntad de reiniciar</string> </resources> \ No newline at end of file diff --git a/idh.code/frameworks/base/core/res/res/values-pt/strings.xml b/idh.code/frameworks/base/core/res/res/values-pt/strings.xml old mode 100644 new mode 100755 index aab0837..43234b7 --- a/idh.code/frameworks/base/core/res/res/values-pt/strings.xml +++ b/idh.code/frameworks/base/core/res/res/values-pt/strings.xml @@ -1736,5 +1736,5 @@ <string name="station_state_connected">"Estação %1$s é ligada"</string> <string name="station_state_disconnected">"Estação %1$s é desligada"</string> <string name="station_state_msg">"%1$s ligada, %2$s bloqueada"</string> - + <string name="reboot_confirm" product="default">Você telefone irá reiniciar</string> </resources> \ No newline at end of file diff --git a/idh.code/frameworks/base/core/res/res/values-zh-rCN/strings.xml b/idh.code/frameworks/base/core/res/res/values-zh-rCN/stri index 24d8bf9..2f37d7b 100755 --- a/idh.code/frameworks/base/core/res/res/values-zh-rCN/strings.xml +++ b/idh.code/frameworks/base/core/res/res/values-zh-rCN/strings.xml @@ -1782,5 +1782,5 @@ <string name="media_shared_">"目前計算機正在使用 存儲設(shè)備。"</string> <string name="media_unknown_state_">"存儲處于未知狀態(tài)。"</string> <!-- @} --> - + <string name="reboot_confirm" product="default">您的手機將會重新啟動。</string> </resources> diff --git a/idh.code/frameworks/base/core/res/res/values-zh-rHK/strings.xml b/idh.code/frameworks/base/core/res/res/values-zh-rHK/stri old mode 100644 new mode 100755 index 268b391..514b21c --- a/idh.code/frameworks/base/core/res/res/values-zh-rHK/strings.xml +++ b/idh.code/frameworks/base/core/res/res/values-zh-rHK/strings.xml @@ -1662,4 +1662,5 @@ </plurals> <string name="restr_pin_try_later" msgid="973144472490532377">"稍後再試"</string> <string name="immersive_mode_confirmation" msgid="7227416894979047467">"由頂端往下快速滑動即可離開全螢?zāi)弧?quot;</string> + <string name="reboot_confirm" product="default">您的手機將會重新啟動。</string> </resources> diff --git a/idh.code/frameworks/base/core/res/res/values-zh-rTW/strings.xml b/idh.code/frameworks/base/core/res/res/values-zh-rTW/stri old mode 100644 new mode 100755 index 799de85..6d94e52 --- a/idh.code/frameworks/base/core/res/res/values-zh-rTW/strings.xml +++ b/idh.code/frameworks/base/core/res/res/values-zh-rTW/strings.xml @@ -1776,5 +1776,5 @@ <string name="media_shared_">"電腦目前正在使用 儲存裝置。"</string> <string name="media_unknown_state_">"儲存裝置狀態(tài)不明。"</string> <!-- @} --> - + <string name="reboot_confirm" product="default">您的手機將會重新啟動。</string> </resources> diff --git a/idh.code/frameworks/base/core/res/res/values/strings.xml b/idh.code/frameworks/base/core/res/res/values/strings.xml index 1310e9b..fcb23e1 100755 --- a/idh.code/frameworks/base/core/res/res/values/strings.xml +++ b/idh.code/frameworks/base/core/res/res/values/strings.xml @@ -4674,5 +4674,5 @@ ot running any application, the service will also collect such data</string> <string name="station_state_disconnected">Station %1$s is disconnected</string> <string name="station_state_msg">%1$s connected, %2$s blocked</string> <!-- @} --> - + <string name="reboot_confirm" product="default">Your phone will reboot.</string> </resources> diff --git a/idh.code/frameworks/base/core/res/res/values/symbols.xml b/idh.code/frameworks/base/core/res/res/values/symbols.xml old mode 100644 new mode 100755 index 7cae969..f349b0d --- a/idh.code/frameworks/base/core/res/res/values/symbols.xml +++ b/idh.code/frameworks/base/core/res/res/values/symbols.xml @@ -1833,4 +1833,5 @@ <!-- SPRD: 293759, modify restart service process --> <java-symbol type="integer" name="config_restartServiceInterval" /> <java-symbol type="integer" name="config_restartAppServiceInterval" /> + <java-symbol type="string" name="reboot_confirm" /> </resources> diff --git a/idh.code/frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java b/idh.code/frameworks/base/policy/ index 1f9e243..a48ca5f 100755 --- a/idh.code/frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java +++ b/idh.code/frameworks/base/policy/src/com/android/internal/policy/impl/GlobalActions.java @@ -300,7 +300,8 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac // shutdown by making sure radio and power are handled accordingly. //mWindowManagerFuncs.shutdown(true); //ShutdownThread.reboot(final Context context, String reason, boolean confirm) - mWindowManagerFuncs.reboot(false); + //mWindowManagerFuncs.reboot(false); + mWindowManagerFuncs.reboot(true);//modify by Yang.Liu on 2014-12-02 } public boolean onLongPress() { diff --git a/idh.code/frameworks/base/services/java/com/android/server/power/ShutdownThread.java b/idh.code/frameworks/base/services/ja old mode 100644 new mode 100755 index fa8a293..455ce79 --- a/idh.code/frameworks/base/services/java/com/android/server/power/ShutdownThread.java +++ b/idh.code/frameworks/base/services/java/com/android/server/power/ShutdownThread.java @@ -139,7 +139,9 @@ public final class ShutdownThread extends Thread { ? com.android.internal.R.string.reboot_safemode_confirm : (longPressBehavior == 2 ? com.android.internal.R.string.shutdown_confirm_question - : com.android.internal.R.string.shutdown_confirm); + : (mReboot + ? com.android.internal.R.string.reboot_confirm + : com.android.internal.R.string.shutdown_confirm)); Log.d(TAG, "Notifying thread to start shutdown longPressBehavior=" + longPressBehavior); @@ -151,7 +153,9 @@ public final class ShutdownThread extends Thread { sConfirmDialog = new AlertDialog.Builder(context) .setTitle(mRebootSafeMode ? com.android.internal.R.string.reboot_safemode_title - : com.android.internal.R.string.power_off) + : (mReboot + ? com.android.internal.R.string.global_action_reboot + : com.android.internal.R.string.power_off)) .setMessage(resourceId) .setPositiveButton(com.android.internal.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) {
相關(guān)案例查看更多
相關(guān)閱讀
- 微信分銷
- python開發(fā)小程序
- 企業(yè)網(wǎng)站
- 百度排名
- 云南網(wǎng)站建設(shè)開發(fā)
- 云南省住房建設(shè)廳網(wǎng)站
- 智慧農(nóng)貿(mào)市場
- 曲靖小程序開發(fā)
- 網(wǎng)絡(luò)公司排名
- 云南網(wǎng)站優(yōu)化公司
- 網(wǎng)站開發(fā)公司哪家好
- 網(wǎng)站建設(shè)首頁
- 云南做網(wǎng)站
- 云南網(wǎng)站建設(shè)優(yōu)化
- uniapp開發(fā)小程序
- 小程序公司
- 昆明做網(wǎng)站
- 政府網(wǎng)站建設(shè)服務(wù)
- 網(wǎng)站優(yōu)化公司
- 網(wǎng)站建設(shè)百度官方
- 網(wǎng)站建設(shè)需要多少錢
- 昆明小程序代建
- 云南網(wǎng)站開發(fā)哪家好
- 云南小程序開發(fā)制作
- 網(wǎng)站建設(shè)方法
- 小程序被騙
- 出入小程序
- 云南建設(shè)廳官方網(wǎng)站
- 小程序密鑰
- 云南軟件定制