diff options
author | Joey <joey@lineageos.org> | 2020-04-04 10:57:37 +0200 |
---|---|---|
committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2020-06-02 22:01:14 +0200 |
commit | b0838b261a6fb447fe9c4cf2513236a0736be209 (patch) | |
tree | f9372025a8a6ceb5bec5b7ca5051e5908d9c7c3d /src/com/android/launcher3/lineage/trust/TrustAppsActivity.java | |
parent | 4447a63df5306b7966a52116247f1c51c83a08d0 (diff) | |
download | android_packages_apps_Trebuchet-b0838b261a6fb447fe9c4cf2513236a0736be209.tar.gz android_packages_apps_Trebuchet-b0838b261a6fb447fe9c4cf2513236a0736be209.tar.bz2 android_packages_apps_Trebuchet-b0838b261a6fb447fe9c4cf2513236a0736be209.zip |
Trebuchet: only allow hidden apps when no secure keyguard is set
Change-Id: I670a61ff3fee4d7c7d9623ce8810790f1b25224a
Signed-off-by: Joey <joey@lineageos.org>
Diffstat (limited to 'src/com/android/launcher3/lineage/trust/TrustAppsActivity.java')
-rw-r--r-- | src/com/android/launcher3/lineage/trust/TrustAppsActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/lineage/trust/TrustAppsActivity.java b/src/com/android/launcher3/lineage/trust/TrustAppsActivity.java index 602c0907e..61bcc7910 100644 --- a/src/com/android/launcher3/lineage/trust/TrustAppsActivity.java +++ b/src/com/android/launcher3/lineage/trust/TrustAppsActivity.java @@ -37,6 +37,7 @@ import androidx.recyclerview.widget.RecyclerView; import com.android.launcher3.LauncherAppState; import com.android.launcher3.R; import com.android.launcher3.Utilities; +import com.android.launcher3.lineage.LineageUtils; import com.android.launcher3.lineage.trust.db.TrustComponent; import com.android.launcher3.lineage.trust.db.TrustDatabaseHelper; @@ -74,7 +75,8 @@ public class TrustAppsActivity extends Activity implements mLoadingView.setVisibility(View.VISIBLE); mProgressBar = findViewById(R.id.hidden_apps_progress_bar); - mAdapter = new TrustAppsAdapter(this); + final boolean hasSecureKeyguard = LineageUtils.hasSecureKeyguard(this); + mAdapter = new TrustAppsAdapter(this, hasSecureKeyguard); mDbHelper = TrustDatabaseHelper.getInstance(this); mRecyclerView.setLayoutManager(new LinearLayoutManager(this)); |