|
|
@@ -23,6 +23,7 @@ import android.widget.TextView;
|
|
|
|
|
|
import androidx.appcompat.app.AlertDialog;
|
|
|
import androidx.appcompat.app.AppCompatActivity;
|
|
|
+import androidx.localbroadcastmanager.content.LocalBroadcastManager;
|
|
|
import androidx.swiperefreshlayout.widget.SwipeRefreshLayout;
|
|
|
|
|
|
import com.usai.redant.rautils.application.RedantApplication;
|
|
|
@@ -37,6 +38,7 @@ import org.w3c.dom.Text;
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
+import static com.usai.redant.rautils.utils.Network.RESULT_LOGIN_ON_OTHER_DEVICE;
|
|
|
import static com.usai.redant.rautils.utils.RAUtil.getJsonFromAsset;
|
|
|
import static java.lang.Thread.sleep;
|
|
|
|
|
|
@@ -261,6 +263,21 @@ public class EnumSlectOnlineActivity extends AppCompatActivity
|
|
|
adapter.notifyDataSetChanged();
|
|
|
|
|
|
}
|
|
|
+ else if(result == RESULT_LOGIN_ON_OTHER_DEVICE)
|
|
|
+ {
|
|
|
+ Intent bintent = new Intent("Kickout");
|
|
|
+ bintent.putExtra("state", true);
|
|
|
+ String msg=finalResult_json.optString("err_msg");
|
|
|
+ if(!TextUtils.isEmpty(msg))
|
|
|
+ {
|
|
|
+ bintent.putExtra("msg", msg);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ LocalBroadcastManager.getInstance(RedantApplication.getInstance())
|
|
|
+ .sendBroadcast(bintent);
|
|
|
+ }
|
|
|
+
|
|
|
else
|
|
|
{
|
|
|
RAUtil.alertMessage(mCtx, "", finalResult_json.optString("err_msg"));
|