You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
705 B
Java
30 lines
705 B
Java
package com.langerhans.one;
|
|
|
|
import android.app.Activity;
|
|
import android.content.Intent;
|
|
import android.os.Bundle;
|
|
import android.view.WindowManager;
|
|
|
|
public class DimmedActivity extends Activity {
|
|
|
|
@Override
|
|
public void onCreate(Bundle bundle) {
|
|
super.onCreate(bundle);
|
|
getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
|
|
|
final Intent intent = getIntent();
|
|
int dialogType = intent.getIntExtra("dialogType", 1);
|
|
|
|
if (dialogType == 1) {
|
|
ApmDialog rebD = new ApmDialog(this);
|
|
rebD.show();
|
|
} else finish();
|
|
}
|
|
|
|
@Override
|
|
public void onPause() {
|
|
super.onPause();
|
|
finish();
|
|
}
|
|
}
|