Advertisement
stirante

profilePic

Sep 16th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.63 KB | None | 0 0
  1.                                 final String nick = (String) callStaticMethod(findClass("Re", packageParam.classLoader), "u");
  2.                                 final Bitmap mask = BitmapFactory.decodeResource(XposedMain.context.getResources(), XposedMain.context.getResources().getIdentifier("ghost_mask_scaled", "drawable", XposedMain.context.getPackageName()));
  3.                                 try {
  4.                                     profilePic = //here get actual bitmap
  5.                                 } catch (IOException e) {
  6.                                     e.printStackTrace();
  7.                                     return;
  8.                                 }
  9.                                 handler.postDelayed(new Runnable() {
  10.                                     int i = 0;//this is picture index, so you can upload many of them which makes animation
  11.  
  12.                                     @Override
  13.                                     public void run() {
  14.                                         if (i < 6) {
  15.                                             ((AsyncTask<Void, Void, Bitmap>) newInstance(findClass("ahs", packageParam.classLoader), new Class[]{Bitmap.class, Bitmap.class, int.class, String.class}, profilePic, mask, i, nick)).execute();
  16.                                             i++;
  17.                                             handler.postDelayed(this, 1000);//not sure if it needs to be every second, but this is the way it is originally
  18.                                         }
  19.                                     }
  20.                                 }, 1000);
  21.                                 XposedBridge.log("Profile pic set!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement