File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,23 @@ public extension AndroidContext {
131131
132132 return __return != nil ? T ( javaObject: __return ) : nil
133133 }
134+
135+ public func setTheme( resId: Int ) {
136+
137+ var __locals = [ jobject] ( )
138+
139+ var __args = [ jvalue] ( repeating: jvalue ( ) , count: 1 )
140+
141+ __args [ 0 ] = jvalue ( i: jint ( resId) )
142+
143+ JNIMethod . CallVoidMethod (
144+ object: javaObject,
145+ methodName: " setTheme " ,
146+ methodSig: " (I)V " ,
147+ methodCache: & JNICache. MethodID. setTheme,
148+ args: & __args,
149+ locals: & __locals )
150+ }
134151}
135152
136153// MARK: - JNICache
@@ -161,6 +178,7 @@ private extension AndroidContext {
161178 static var getSystemService : jmethodID ?
162179 static var registerReceiver : jmethodID ?
163180 static var unregisterReceiver : jmethodID ?
181+ static var setTheme : jmethodID ?
164182 }
165183 }
166184}
You can’t perform that action at this time.
0 commit comments