Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final String nick = (String) callStaticMethod(findClass("Re", packageParam.classLoader), "u");
- final Bitmap mask = BitmapFactory.decodeResource(XposedMain.context.getResources(), XposedMain.context.getResources().getIdentifier("ghost_mask_scaled", "drawable", XposedMain.context.getPackageName()));
- try {
- profilePic = //here get actual bitmap
- } catch (IOException e) {
- e.printStackTrace();
- return;
- }
- handler.postDelayed(new Runnable() {
- int i = 0;//this is picture index, so you can upload many of them which makes animation
- @Override
- public void run() {
- if (i < 6) {
- ((AsyncTask<Void, Void, Bitmap>) newInstance(findClass("ahs", packageParam.classLoader), new Class[]{Bitmap.class, Bitmap.class, int.class, String.class}, profilePic, mask, i, nick)).execute();
- i++;
- handler.postDelayed(this, 1000);//not sure if it needs to be every second, but this is the way it is originally
- }
- }
- }, 1000);
- XposedBridge.log("Profile pic set!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement