summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/InstrumentedFragment.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/settings/InstrumentedFragment.java')
-rw-r--r--src/com/android/settings/InstrumentedFragment.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/settings/InstrumentedFragment.java b/src/com/android/settings/InstrumentedFragment.java
index 96b7296..604af18 100644
--- a/src/com/android/settings/InstrumentedFragment.java
+++ b/src/com/android/settings/InstrumentedFragment.java
@@ -23,6 +23,16 @@ import com.android.internal.logging.MetricsLogger;
* Instrumented fragment that logs visibility state.
*/
public abstract class InstrumentedFragment extends PreferenceFragment {
+ // Declare new temproary categories here, starting after this value.
+ public static final int VIEW_CATEGORY_UNDECLARED = 100000;
+
+ /**
+ * Declare the view of this category.
+ *
+ * Categories are defined in {@link com.android.internal.logging.MetricsLogger}
+ * or if there is no relevant existing category you may define one in
+ * {@link com.android.settings.InstrumentedFragment}.
+ */
protected abstract int getMetricsCategory();
@Override