/*
 *  Copyright 2019 Google Inc. All Rights Reserved.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

package com.google.android.apps.forscience.whistlepunk;

/**
 * Holder for flags
 *
 * Flag values should be set in WhistlePunkApplication#onCreate if they differ from their default
 * values or are dependent on server-side values. After WhistlePunkApplication#onCreate, the getters
 * can be trusted and the setters should not be called.
 *
 * If the flag protects a specific feature, the flag should be removed in the next launch following
 * the full rollout of the feature.
 **/
public class Flags {
  private static boolean showActionBar = false;
  private static boolean showTestingOptions = false;

  private Flags() {} // uninstantiable

  public static void setShowActionBar(boolean show) {
    showActionBar = show;
  }

  public static void setShowTestingOptions(boolean show) {
    showTestingOptions = show;
  }

  public static boolean showActionBar() {
    return showActionBar;
  }

  public static boolean showTestingOptions() {
    return showTestingOptions;
  }
}

@@ -1224,16 +1224,125 @@
 = false;
+%0A  private static boolean showDrawOption = false;%0A  private static boolean showVelocityTrackerOption = false;
 %0A%0A  priv
@@ -1452,32 +1452,228 @@
 ar = show;%0A  %7D%0A%0A
+  public static void setShowDrawOption(boolean show) %7B%0A    showDrawOption = show;%0A  %7D%0A%0A  public static void setShowVelocityTrackerOption(boolean show) %7B%0A    showVelocityTrackerOption = show;%0A  %7D%0A%0A
   public static 
@@ -1867,24 +1867,24 @@
 Options() %7B%0A
-
     return s
@@ -1905,11 +1905,183 @@
 ons;%0A  %7D
+%0A%0A  public static boolean showDrawOption() %7B%0A    return showDrawOption;%0A  %7D%0A%0A  public static boolean showVelocityTrackerOption() %7B%0A    return showVelocityTrackerOption;%0A  %7D
 %0A%7D%0A

Add new flags for velocity tracker and drawing note types