|
@@ -6,10 +6,13 @@ import android.content.Intent;
|
|
|
import android.os.Bundle;
|
|
|
import android.os.PowerManager;
|
|
|
import android.util.Log;
|
|
|
+import android.view.View;
|
|
|
import android.widget.ListView;
|
|
|
+import android.widget.RelativeLayout;
|
|
|
|
|
|
import com.xplora.xpsettings.Adapter.BaseListAdapter;
|
|
|
import com.xplora.xpsettings.Fragment.SelectFragment;
|
|
|
+import com.xplora.xpsettings.Fragment.ShutdownningFragment;
|
|
|
import com.xplora.xpsettings.Listener;
|
|
|
import com.xplora.xpsettings.Model.BaseModel;
|
|
|
import com.xplora.xpsettings.R;
|
|
@@ -23,6 +26,7 @@ import java.util.List;
|
|
|
|
|
|
|
|
|
public class SettingsActivity extends BaseActivity implements Listener.SelectFragmentListener {
|
|
|
+ private RelativeLayout mBlackLayout = null;
|
|
|
|
|
|
@Override
|
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
@@ -46,6 +50,7 @@ public class SettingsActivity extends BaseActivity implements Listener.SelectFra
|
|
|
|
|
|
private void initView() {
|
|
|
mAdapter = new BaseListAdapter(this, R.layout.item_xpstyle, mDataList);
|
|
|
+ mBlackLayout = findViewById(R.id.mBlackLayout);
|
|
|
ListView listView = findViewById(R.id.activity_listview);
|
|
|
listView.setAdapter(mAdapter);
|
|
|
|
|
@@ -117,6 +122,12 @@ public class SettingsActivity extends BaseActivity implements Listener.SelectFra
|
|
|
} else if (type == 11) {
|
|
|
shutdown();
|
|
|
}
|
|
|
+ if (mBlackLayout != null) {
|
|
|
+ mBlackLayout.setVisibility(View.VISIBLE);
|
|
|
+ }
|
|
|
+// //黑背景,防止关机中看到setting界面
|
|
|
+// ShutdownningFragment fragment = ShutdownningFragment.newInstance(this);
|
|
|
+// fragment.show(this.getFragmentManager(), Constant.PACKAGE_NAME);
|
|
|
}
|
|
|
|
|
|
public void gotoQRcode() {
|