[Android Themes] flamery:
Hi guys, Im tryign to remove the camera shortcut from my lockscreen. Now this phone is a Nubia and has some customisaiotn so lockscreen apps dont work on it and there is no options in the settings either. Anyways I have decomplued and foudn where the I believe the shortcut is being placed in a file called "keyguard_bottom_area.xml" I have tried two things

1) deleting the whole string

<com.android.systemui.statusbar.KeyguardAffordanceView android:layout_gravity="end|bottom|center" android:id="@id/camera_button" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_camera_alt_24dp" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_camera_button" />

that results in a crash on startup

2) adding visibilty gone

<FrameLayout android:id="@id/preview_container" android:layout_width="fill_parent" android:layout_height="fill_parent" />

<com.android.systemui.statusbar.KeyguardAffordanceView android:layout_gravity="end|bottom|center" android:id="@id/camera_button" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_camera_alt_24dp" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_camera_button" android:visibility="gone" />

this seems to have no effect at all, shortcuts are still there and clickable.

Here is the whole code, any idea how i can make this go away?

<?xml version="1.0" encoding="utf-8"?>

<com.android.systemui.statusbar.phone.KeyguardBottomAreaView android:id="@id/keyguard_bottom_area" android:layout_width="fill_parent" android:layout_height="fill_parent"

xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">

<com.android.systemui.statusbar.phone.KeyguardIndicationTextView android:textAppearance="?android:textAppearanceSmall" android:textColor="#ffffffff" android:layout_gravity="bottom|center" android:id="@id/keyguard_indication_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="@dimen/keyguard_indication_margin_bottom" />

<FrameLayout android:id="@id/preview_container" android:layout_width="fill_parent" android:layout_height="fill_parent" />

<com.android.systemui.statusbar.KeyguardAffordanceView android:layout_gravity="end|bottom|center" android:id="@id/camera_button" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_camera_alt_24dp" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_camera_button" />

<com.android.systemui.statusbar.KeyguardAffordanceView android:layout_gravity="start|bottom|center" android:id="@id/phone_button" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_phone_24dp" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_phone_button" />

<com.android.systemui.statusbar.KeyguardAffordanceView android:layout_gravity="bottom|center" android:id="@id/lock_icon" android:layout_width="@dimen/keyguard_affordance_width" android:layout_height="@dimen/keyguard_affordance_height" android:src="@drawable/ic_lock_24dp" android:scaleType="center" android:tint="#ffffffff" android:contentDescription="@string/accessibility_unlock_button" />

<include layout="@layout/lockscreen_host_view" />

</com.android.systemui.statusbar.phone.KeyguardBottomAreaView>