GroupActivity.java 文件源码

java
阅读 63 收藏 0 点赞 0 评论 0

项目:Clipcon-AndroidClient 作者:
@Override
public void onBackPressed() {

    new MaterialDialog.Builder(this)
            .content(R.string.exitAlert)
            .negativeText(R.string.no)
            .positiveText(R.string.yes)
            .onPositive(new MaterialDialog.SingleButtonCallback() {
                @Override
                public void onClick(@NonNull MaterialDialog dialog, @NonNull DialogAction which) {
                    new EndpointInBackGround().execute(Message.REQUEST_EXIT_GROUP);
                    Intent intent = new Intent(getApplicationContext(), ClipboardService.class);
                    stopService(intent);
                    GroupActivity.super.onBackPressed();
                }
            })
            .show();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号