commit | 054b2197bb122777a80551d6078ca5e8cc502f9f | [log] [tgz] |
---|---|---|
author | cjybyjk <cjybyjk@zjnu.edu.cn> | Tue Jul 06 03:03:29 2021 +0800 |
committer | cjybyjk <cjybyjk@zjnu.edu.cn> | Tue Jul 06 03:03:45 2021 +0800 |
tree | fa7af01c54787b83e357165f77f51abfeadd382c | |
parent | fc612b6fd62af05b37ccc84efda3c9f516934d28 [diff] |
qs: add onDestroy method Signed-off-by: cjybyjk <cjybyjk@zjnu.edu.cn> Change-Id: I892f951159dc7bb1a8b07fedc5a65514d7a0b2d7
diff --git a/app/src/main/java/org/exthmui/game/qs/TileBase.java b/app/src/main/java/org/exthmui/game/qs/TileBase.java index 02467b9..7cf67fe 100644 --- a/app/src/main/java/org/exthmui/game/qs/TileBase.java +++ b/app/src/main/java/org/exthmui/game/qs/TileBase.java
@@ -95,4 +95,8 @@ intent.putExtra("value", !isSelected); LocalBroadcastManager.getInstance(mContext).sendBroadcast(intent); } + + public void onDestroy() { + + } }
diff --git a/app/src/main/java/org/exthmui/game/ui/QuickSettingsView.java b/app/src/main/java/org/exthmui/game/ui/QuickSettingsView.java index 19653c7..ea3b1ff 100644 --- a/app/src/main/java/org/exthmui/game/ui/QuickSettingsView.java +++ b/app/src/main/java/org/exthmui/game/ui/QuickSettingsView.java
@@ -74,4 +74,10 @@ tileBase.setConfig(config); } } + + public void onDestroy() { + for (TileBase tileBase : qsTiles) { + tileBase.onDestroy(); + } + } }