OSDN Git Service

Implement poweroff function in Settings menu
[android-x86/packages-apps-Settings.git] / AndroidManifest.xml
index cfa92b0..f4f7d21 100644 (file)
                 android:resource="@id/about_settings" />
         </activity>
 
+        <activity android:name="Settings$PowerOff"
+                android:label="@string/power_off"
+                android:theme="@*android:style/Theme.Holo.Dialog.Alert">
+            <intent-filter>
+                <action android:name="android.intent.ACTION_REQUEST_SHUTDOWN" />
+                <action android:name="android.intent.action.MAIN" />
+                <category android:name="android.intent.category.DEFAULT" />
+            </intent-filter>
+        </activity>
+
         <activity android:name="SettingsLicenseActivity"
                 android:label="@string/settings_license_activity_title"
                 android:theme="@android:style/Theme.Holo.Panel"