快传成绩单 - 热点优化
This commit is contained in:
@ -13,6 +13,7 @@ import android.widget.Toast;
|
||||
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.common.constant.Config;
|
||||
import com.gh.common.util.RandomUtils;
|
||||
import com.gh.common.util.TokenUtils;
|
||||
import com.gh.common.util.Utils;
|
||||
import com.gh.gamecenter.retrofit.JSONObjectResponse;
|
||||
@ -149,6 +150,18 @@ public class SelectUserIconActivity extends BaseActivity {
|
||||
String icon = response.getString("icon");
|
||||
|
||||
sp.edit().putInt("default_user_icon", i).apply();
|
||||
|
||||
//初始化热点名称
|
||||
String chars = "abcdefghijklmnopqrstuvwxyz";
|
||||
int[] randomArray = RandomUtils.getRandomArray(2, 25);
|
||||
|
||||
String mySsid = "ghZS-";
|
||||
for (int i : randomArray) {
|
||||
mySsid = mySsid + chars.charAt(i);
|
||||
}
|
||||
mySsid = mySsid + i;
|
||||
sp.edit().putString("hotspotName", mySsid).apply();
|
||||
|
||||
Intent intent = new Intent();
|
||||
intent.putExtra("url", icon);
|
||||
setResult(0x125, intent);
|
||||
|
||||
Reference in New Issue
Block a user