diff options
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java index f016dc0..9d76e4d 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSDragPanel.java @@ -1477,7 +1477,10 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On super.handleShowDetailImpl(r, show, x, y); if (show) { final StatusBarPanelCustomTile customTile = r.detailAdapter.getCustomTile(); - mDetailRemoveButton.setVisibility(customTile != null ? VISIBLE : GONE); + mDetailRemoveButton.setVisibility(customTile != null && + !(customTile.getPackage().equals(mContext.getPackageName()) + || customTile.getUid() == android.os.Process.SYSTEM_UID) + ? VISIBLE : GONE); mDetailRemoveButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { |