OSDN Git Service

Don't show market links if market app is protected
authorGabriele M <moto.falcon.git@gmail.com>
Sun, 2 Apr 2017 17:22:40 +0000 (19:22 +0200)
committerDan Pasanen <dan.pasanen@gmail.com>
Tue, 25 Apr 2017 14:53:55 +0000 (14:53 +0000)
commit99649a575c74b7a76308cf955502a0bf33954a35
treead8c7c142d801519f8198cb852bbaf0464819277
parent1cc5cef42654a6e5545e16ae4c8b2f858d701bf7
Don't show market links if market app is protected

Trebuchet is a protected component manager, therefore it can start
protected apps without asking for a password. When a user looks for
an app that isn't installed using the search box in the app drawer,
Trebuchet shows a link to start the default market app. This allows
any user to start the market app without inserting the password, even
when protected, so hide the link in this case.

BUGBASH-358

Change-Id: Ic42355cfc1b689818c5d6682a61cf1c98d37bc80
src/com/android/launcher3/AppInfo.java
src/com/android/launcher3/allapps/AllAppsGridAdapter.java