This would fix dir path duplicate on refresh acc

This commit is contained in:
Duy Tran Khanh 2020-12-29 16:10:26 +07:00
parent 046de2d6ca
commit 7103e11801
3 changed files with 5 additions and 2 deletions

View file

@ -736,7 +736,7 @@ public class PojavLoginActivity extends BaseActivity
@Override
public void onClick(DialogInterface p1, int p2) {
new InvalidateTokenTask(PojavLoginActivity.this)
.execute(Tools.DIR_ACCOUNT_NEW + "/" + selectedAccName + ".json");
.execute(selectedAccName);
listAdapter.remove(selectedAccName);
listAdapter.notifyDataSetChanged();
}

View file

@ -79,6 +79,6 @@ public class PojavProfile
}
public static void updateTokens(final Activity ctx, final String name, RefreshListener listen) throws Exception {
new RefreshTokenTask(ctx, listen).execute(Tools.DIR_ACCOUNT_NEW + "/" + name + ".json");
new RefreshTokenTask(ctx, listen).execute(name);
}
}

View file

@ -372,6 +372,9 @@ public abstract class HandleView extends View implements ViewPositionListener, V
int newWidth = (int) (mDownWidth + (rawX - mDownX));
int newHeight = (int) (mDownHeight + (rawY - mDownY));
mDownX = rawX;
mDownY = rawY;
params.width = Math.max(50, newWidth);
params.height = Math.max(50, newHeight);