快传成绩单 - 热点优化

This commit is contained in:
khy
2017-02-24 15:11:00 +08:00
parent ef1f2251b5
commit da20b817d2
42 changed files with 960 additions and 155 deletions

View File

@ -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);