-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase the total amount of quick settings tiles to 12 (#1744)
- Loading branch information
Showing
10 changed files
with
266 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile10Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile10Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_10" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile11Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile11Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_11" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile12Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile12Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_12" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile6Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile6Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_6" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile7Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile7Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_7" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile8Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile8Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_8" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
app/src/main/java/io/homeassistant/companion/android/qs/Tile9Service.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.homeassistant.companion.android.qs | ||
|
||
import android.os.Build | ||
import android.service.quicksettings.Tile | ||
import androidx.annotation.RequiresApi | ||
|
||
@RequiresApi(Build.VERSION_CODES.N) | ||
class Tile9Service : TileExtensions() { | ||
|
||
companion object { | ||
private const val TILE_ID = "tile_9" | ||
} | ||
|
||
override fun getTile(): Tile? { | ||
return if (qsTile != null) | ||
qsTile | ||
else | ||
null | ||
} | ||
|
||
override fun getTileId(): String { | ||
return TILE_ID | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters