import java.util.*;
import java.util.zip.*;
import java.util.List;
import java.util.regex.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.concurrent.locks.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import javax.swing.table.*;
import java.io.*;
import java.net.*;
import java.lang.reflect.*;
import java.lang.ref.*;
import java.lang.management.*;
import java.security.*;
import java.security.spec.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import javax.imageio.*;
import java.math.*;
import android.app.Activity;
import android.view.*;
import android.view.Menu;
import android.view.MenuItem;
class main {
static void aRemoveItemFromMenu(final Menu menu, final String title) {
if (menu == null || title == null) return;
{ androidUI(new Runnable() { public void run() { try {
for (int i = 0; i < menu.size(); i++) {
MenuItem item = menu.getItem(i);
if (eqic(str(item.getTitle()), title)) {
int id = item.getItemId();
print("Removing menu item " + id);
int n = menu.size();
menu.removeItem(id);
boolean removed = menu.size() < n;
if (!removed) print("Could not remove menu item");
else { print("Removed"); i--; }
}
}
} catch (Exception __e) { throw rethrow(__e); } } public String toString() { return "for (int i = 0; i < menu.size(); i++) {\r\n MenuItem item = menu.getItem(i..."; }}); }
}
static void androidUI(final Object r) {
androidUI_wait(r);
}
static A androidUI(F0 f) {
return androidUI_wait(f);
}
static boolean eqic(String a, String b) {
if ((a == null) != (b == null)) return false;
if (a == null) return true;
return a.equalsIgnoreCase(b);
}
static boolean eqic(char a, char b) {
if (a == b) return true;
char u1 = Character.toUpperCase(a);
char u2 = Character.toUpperCase(b);
if (u1 == u2) return true;
return Character.toLowerCase(u1) == Character.toLowerCase(u2);
}
static String str(Object o) {
return o == null ? "null" : o.toString();
}
static String str(char[] c) {
return new String(c);
}
static volatile StringBuffer local_log = new StringBuffer(); // not redirected
static volatile Appendable print_log = local_log; // might be redirected, e.g. to main bot
// in bytes - will cut to half that
static volatile int print_log_max = 1024*1024;
static volatile int local_log_max = 100*1024;
static boolean print_silent; // total mute if set
static Object print_byThread_lock = new Object();
static volatile ThreadLocal