wxr
2022-11-24 2af932533ef851bf983385244e9912976dbd4daa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.mm.android.deviceaddmodule.mobilecommon.base;
 
import android.os.Bundle;
 
import com.mm.android.deviceaddmodule.R;
import com.mm.android.deviceaddmodule.mobilecommon.eventbus.event.BaseEvent;
import com.mm.android.deviceaddmodule.mobilecommon.eventbus.event.CloseProgressWindow;
 
public class ProgressActivity extends BaseFragmentActivity {
 
    @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setContentView(R.layout.mobile_common_progressdialog_layout);
 
        setFinishOnTouchOutside(false);
    }
 
    @Override
    public void onMessageEvent(BaseEvent event) {
        if(event instanceof CloseProgressWindow){
            finish();
        }
    }
}