summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/lineage/trust/TrustAppsActivity.java
diff options
context:
space:
mode:
authorJoey <joey@lineageos.org>2020-04-04 10:57:37 +0200
committerLuca Stefani <luca.stefani.ge1@gmail.com>2020-06-02 22:01:14 +0200
commitb0838b261a6fb447fe9c4cf2513236a0736be209 (patch)
treef9372025a8a6ceb5bec5b7ca5051e5908d9c7c3d /src/com/android/launcher3/lineage/trust/TrustAppsActivity.java
parent4447a63df5306b7966a52116247f1c51c83a08d0 (diff)
downloadandroid_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.java4
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));