Loading packages/SystemUI/res/drawable/ic_action_lockdown.xml 0 → 100644 +27 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 The LineageOS Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="?android:attr/colorControlNormal"> <path android:fillColor="#000" android:pathData="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z" /> </vector> No newline at end of file packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +4 −2 Original line number Diff line number Diff line Loading @@ -832,12 +832,14 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener, DialogIn } private Action getLockdownAction() { return new SinglePressAction(R.drawable.ic_lock_lock, return new SinglePressAction(com.android.systemui.R.drawable.ic_action_lockdown, R.string.global_action_lockdown) { @Override public void onPress() { new LockPatternUtils(mContext).requireCredentialEntry(UserHandle.USER_ALL); new LockPatternUtils(mContext).requireStrongAuth( LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_AFTER_LOCKOUT, UserHandle.USER_ALL); try { WindowManagerGlobal.getWindowManagerService().lockNow(null); } catch (RemoteException e) { Loading Loading
packages/SystemUI/res/drawable/ic_action_lockdown.xml 0 → 100644 +27 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2018 The LineageOS Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24" android:tint="?android:attr/colorControlNormal"> <path android:fillColor="#000" android:pathData="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z" /> </vector> No newline at end of file
packages/SystemUI/src/com/android/systemui/globalactions/GlobalActionsDialog.java +4 −2 Original line number Diff line number Diff line Loading @@ -832,12 +832,14 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener, DialogIn } private Action getLockdownAction() { return new SinglePressAction(R.drawable.ic_lock_lock, return new SinglePressAction(com.android.systemui.R.drawable.ic_action_lockdown, R.string.global_action_lockdown) { @Override public void onPress() { new LockPatternUtils(mContext).requireCredentialEntry(UserHandle.USER_ALL); new LockPatternUtils(mContext).requireStrongAuth( LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_AFTER_LOCKOUT, UserHandle.USER_ALL); try { WindowManagerGlobal.getWindowManagerService().lockNow(null); } catch (RemoteException e) { Loading