use of com.stardust.app.OperationDialogBuilder in project Auto.js by hyb1996.
the class CircularMenu method settings.
@Optional
@OnClick(R.id.settings)
void settings() {
mWindow.collapse();
mRunningPackage = AutoJs.getInstance().getInfoProvider().getLatestPackage();
mRunningActivity = AutoJs.getInstance().getInfoProvider().getLatestActivity();
mSettingsDialog = new OperationDialogBuilder(mContext).item(R.id.accessibility_service, R.drawable.ic_service_green, R.string.text_accessibility_settings).item(R.id.package_name, R.drawable.ic_ali_app, mContext.getString(R.string.text_current_package) + mRunningPackage).item(R.id.class_name, R.drawable.ic_ali_android, mContext.getString(R.string.text_current_activity) + mRunningActivity).item(R.id.open_launcher, R.drawable.ic_android_eat_js, R.string.text_open_main_activity).item(R.id.exit, R.drawable.ic_close_white_48dp, R.string.text_exit_floating_window).bindItemClick(this).title(R.string.text_more).build();
DialogUtils.showDialog(mSettingsDialog);
}
Aggregations