You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
use Activity title as window title
This commit is contained in:
@@ -68,6 +68,7 @@ public class Window {
|
||||
}
|
||||
|
||||
private native void set_widget_as_root(long native_window, long widget);
|
||||
private native void set_title(long native_window, String title);
|
||||
|
||||
public native void take_input_queue(long native_window, InputQueue.Callback callback, InputQueue queue);
|
||||
|
||||
@@ -133,4 +134,8 @@ public class Window {
|
||||
public boolean hasFeature(int featureId) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence title) {
|
||||
set_title(native_window, title != null ? title.toString() : context.getPackageName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user