EditInfoActivity.java revision 9be32659526009cdd4e2cd7c15e89bae5e2ef619
1/* 2 * Copyright (C) 2016 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16package com.android.emergency.edit; 17 18import static android.view.WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD; 19 20import android.os.Bundle; 21 22import com.android.emergency.EmergencyTabActivity; 23import com.android.emergency.R; 24import com.android.internal.logging.MetricsLogger; 25import com.android.internal.logging.MetricsProto.MetricsEvent; 26/** 27 * Activity for editing emergency information. 28 */ 29public class EditInfoActivity extends EmergencyTabActivity { 30 @Override 31 protected void onCreate(Bundle savedInstanceState) { 32 super.onCreate(savedInstanceState); 33 setContentView(R.layout.edit_activity_layout); 34 35 getWindow().addFlags(FLAG_DISMISS_KEYGUARD); 36 MetricsLogger.visible(this, MetricsEvent.ACTION_EDIT_EMERGENCY_INFO); 37 } 38 39 @Override 40 public boolean isInViewMode() { 41 return false; 42 } 43 44 @Override 45 public String getActivityTitle() { 46 return getString(R.string.edit_emergency_info_label); 47 } 48} 49