Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addMenuItem(new MenuItem("Clear RMS", 0, 2004){
- public void run(){
- long key;
- // Remove profile pic
- key = 1 + YoyoVariableChat.PIN.hashCode();
- PersistentStore.destroyPersistentObject(key);
- // Remove smaller profile pic
- key = 2 + YoyoVariableChat.PIN.hashCode();
- PersistentStore.destroyPersistentObject(key);
- // Remove self contact
- key = 1 + YoyoVariableChat.getSelfContact().getUsername().hashCode()*3;
- PersistentStore.destroyPersistentObject(key);
- // Remove position
- key = YoyoVariable.POSITION_PERSISTENTKEY;
- PersistentStore.destroyPersistentObject(key);
- // Remove font
- key = YoyoVariable.FONT_PERSISTENTKEY;
- PersistentStore.destroyPersistentObject(key);
- PersistentStorage.erase();
- PersistentStorage.setRegistered(false);
- Dialog.inform("RMS cleared.");
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement