content: package com.zyc.zcontrol.deviceItem.clockMatrix;
  
  import android.os.Bundle;
  import android.view.MenuItem;
  
  import com.zyc.zcontrol.R;
  
  import androidx.appcompat.app.ActionBar;
  import androidx.appcompat.app.AppCompatActivity;
  
  public class ClockMatrixLinkActivity extends AppCompatActivity  {
      public final static String Tag = "ClockLinkActivity";
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.clock_activity_link);
  
  
          //region 顶部返回按钮
          ActionBar actionBar = getSupportActionBar();
          if (actionBar != null) {
              actionBar.setHomeButtonEnabled(true);
              actionBar.setDisplayHomeAsUpEnabled(true);
          }
          //endregion
  
      }
  
      @Override
      public boolean onOptionsItemSelected(MenuItem item) {
          switch (item.getItemId()) {
              case android.R.id.home:
                  this.finish();
                  return true;
          }
          return super.onOptionsItemSelected(item);
      }
  
  }
  