mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-21 09:01:56 -07:00
This would fix dir path duplicate on refresh acc
This commit is contained in:
parent
046de2d6ca
commit
7103e11801
3 changed files with 5 additions and 2 deletions
|
|
@ -736,7 +736,7 @@ public class PojavLoginActivity extends BaseActivity
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface p1, int p2) {
|
public void onClick(DialogInterface p1, int p2) {
|
||||||
new InvalidateTokenTask(PojavLoginActivity.this)
|
new InvalidateTokenTask(PojavLoginActivity.this)
|
||||||
.execute(Tools.DIR_ACCOUNT_NEW + "/" + selectedAccName + ".json");
|
.execute(selectedAccName);
|
||||||
listAdapter.remove(selectedAccName);
|
listAdapter.remove(selectedAccName);
|
||||||
listAdapter.notifyDataSetChanged();
|
listAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,6 @@ public class PojavProfile
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void updateTokens(final Activity ctx, final String name, RefreshListener listen) throws Exception {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -372,6 +372,9 @@ public abstract class HandleView extends View implements ViewPositionListener, V
|
||||||
int newWidth = (int) (mDownWidth + (rawX - mDownX));
|
int newWidth = (int) (mDownWidth + (rawX - mDownX));
|
||||||
int newHeight = (int) (mDownHeight + (rawY - mDownY));
|
int newHeight = (int) (mDownHeight + (rawY - mDownY));
|
||||||
|
|
||||||
|
mDownX = rawX;
|
||||||
|
mDownY = rawY;
|
||||||
|
|
||||||
params.width = Math.max(50, newWidth);
|
params.width = Math.max(50, newWidth);
|
||||||
params.height = Math.max(50, newHeight);
|
params.height = Math.max(50, newHeight);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue