First time it intialise the variable and next time when you click button it doesn't get null value
Remove if condition from this
if(uniqueId == null) {
uniqueId = UUID.randomUUID().toString();
}
Use this
uniqueId = UUID.randomUUID().toString();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…