title: Setting custom screen name for bottom sheet screen for Firebase Analytics
body: <p>I have an activity with a sliding bottom sheet. I want to track how long does the user views the bottom sheet or the main activity screen. </p>
  
  <p>I'm trying to use <code>FirebaseAnalytics#setCurrentScreen(Activity activity, String screenName, String screenClassOverride)</code> so that when the bottom sheet is shown. I specify the screenName with</p>
  
  <pre><code>FirebaseAnalytics.setCurrentScreen(activity, "bottom_sheet", null);
  </code></pre>
  
  <p>Then when the bottom sheet is closed I call</p>
  
  <pre><code>FirebaseAnalytics.setCurrentScreen(activity, null, null);
  </code></pre>
  
  <p>to revert to the main activity's name.</p>
  
  <p>However I get a log from FA:</p>
  
  <blockquote>
    <p>W/FA: setCurrentScreen cannot be called with the same class and name</p>
  </blockquote>
  
  <p>If anyone can tell me how to properly set the screen name that would be great.</p>