Completed basic UI of Satellite SOS

Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: b/378408877
Test: Manual test
Change-Id: Iadef197b3da1008abedb88864f17087502ab7d36
This commit is contained in:
tomhsu
2024-11-29 14:44:18 +00:00
committed by Tom Hsu
parent 1830f3b2bf
commit 37ed715145
13 changed files with 512 additions and 5 deletions

View File

@@ -0,0 +1,25 @@
/*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.network.telephony;
import android.app.Fragment;
public class SatelliteSettingsSosController {
public SatelliteSettingsSosController(Fragment fragment) {
}
}

View File

@@ -16,11 +16,30 @@
package com.android.settings.network.telephony;
import com.android.settings.SettingsPreferenceFragment;
import android.os.UserManager;
import com.android.settings.R;
import com.android.settings.dashboard.RestrictedDashboardFragment;
public class SatelliteSettingsSosFragment extends RestrictedDashboardFragment {
public SatelliteSettingsSosFragment() {
super(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS);
}
public class SatelliteSettingsSosFragment extends SettingsPreferenceFragment {
@Override
public int getMetricsCategory() {
return 0;
}
@Override
protected int getPreferenceScreenResId() {
return R.xml.satellite_setting_sos;
}
@Override
protected String getLogTag() {
return "";
}
}