File tree Expand file tree Collapse file tree
packages/SystemUI/src/com/android/systemui/qs/tiles Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/*
22 * Copyright (C) 2017-2020 crDroidAndroid Project
3+ * Copyright (C) 2020 Havoc-OS
34 *
45 * Licensed under the Apache License, Version 2.0 (the "License");
56 * you may not use this file except in compliance with the License.
2021import android .provider .Settings ;
2122import android .provider .Settings .System ;
2223import android .service .quicksettings .Tile ;
24+ import android .text .TextUtils ;
2325
2426import com .android .systemui .plugins .qs .QSTile .BooleanState ;
2527import com .android .systemui .qs .SystemSetting ;
@@ -106,6 +108,14 @@ protected String composeChangeAnnouncement() {
106108 return mContext .getString (R .string .quick_settings_fpsinfo_label );
107109 }
108110
111+ @ Override
112+ public boolean isAvailable () {
113+ final String fpsInfoSysNode = mContext .getResources ().getString (
114+ R .string .config_fpsInfoSysNode );
115+ boolean fpsInfoSupported = !TextUtils .isEmpty (fpsInfoSysNode );
116+ return fpsInfoSupported ;
117+ }
118+
109119 @ Override
110120 public int getMetricsCategory () {
111121 return MetricsEvent .NUSANTARA_TILE ;
You can’t perform that action at this time.
0 commit comments