summaryrefslogtreecommitdiffstats
path: root/src/net/hoopajoo/android/SoftKeys/Theme.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/hoopajoo/android/SoftKeys/Theme.java')
-rw-r--r--src/net/hoopajoo/android/SoftKeys/Theme.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/hoopajoo/android/SoftKeys/Theme.java b/src/net/hoopajoo/android/SoftKeys/Theme.java
index 310fd31..3fcb880 100644
--- a/src/net/hoopajoo/android/SoftKeys/Theme.java
+++ b/src/net/hoopajoo/android/SoftKeys/Theme.java
@@ -137,6 +137,16 @@ public class Theme {
}
*/
+ // this returns the first ID matched, for use by the generator to find the
+ // button container view by id
+ public int getId( String[] name ) {
+ IdPack i = getId( name, "id" );
+ if( i != null ) {
+ return i.id;
+ }
+ return( 0 );
+ }
+
private IdPack getId( String[] name, String type ) {
// return the most specific match, from theme first then from app
for( IdPack check : mResources ) {