title: Android AppTileService onClick not get called
body: <p>For my android app I have added an AppTile. Most of the time this AppTile <strong>is not clickable</strong>. Its icon is grayed out, such as disabled or unavailable icons (<a href="https://developer.android.com/reference/android/service/quicksettings/Tile.html#STATE_UNAVAILABLE" rel="nofollow noreferrer">https://developer.android.com/reference/android/service/quicksettings/Tile.html#STATE_UNAVAILABLE</a>)</p>
  
  <p>In my Logs this line is never reached</p>
  
  <pre><code>Logger.d(getClass(), "onClick()");
  </code></pre>
  
  <p>But I have tested that the methods <em>onStartListening()</em> or <em>onStopListening()</em> are called every time the AppTile becomes visible or hides.</p>
  
  <p>AppTileService.java</p>
  
  <pre><code>package my.package
  
  import android.os.Build;
  import android.service.quicksettings.TileService;
  import android.support.annotation.RequiresApi;
  
  import my.package.utils.Logger;
  
  @RequiresApi(api = Build.VERSION_CODES.N)
  public class AppTileService extends TileService {
  
      @Override
      public void onClick() {
          Logger.d(getClass(), "onClick()");
          if (isSecure()) {
              Logger.d(getClass(), "isSecure = true");
              NotificationHandler.showDirectReplyNotification(this);
          }
      }
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="my.package"&gt; 
     &lt;application
          android:allowBackup="false"
          android:icon="@mipmap/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme"&gt;
  
          &lt;activity
              android:name=".MainActivity"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:windowSoftInputMode="stateHidden"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN"/&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
  
          &lt;service
              android:name=".AppTileService"
              android:icon="@drawable/tile_icon"
              android:label="@string/app_name"
              android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.service.quicksettings.action.QS_TILE"/&gt;
              &lt;/intent-filter&gt;
          &lt;/service&gt;
  
      &lt;/application&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p><strong>Can someone tell me what this could be, or whether I have forgotten something to implement?</strong></p>