pipa: update StylusSettingsActivity for consistency

- Update copyright year to 2023-2025
- Standardize license header format to SPDX
- Add class documentation with JavaDoc
- Add basic logging for activity creation
- Standardize TAG naming convention

Signed-off-by: Abdulwahab Isam <abdoi94.iq@gmail.com>
This commit is contained in:
Abdulwahab Isam
2025-03-24 05:51:23 +03:00
parent d42cfa9e8d
commit 601d2fd23f

View File

@@ -1,33 +1,31 @@
/*
* Copyright (C) 2023 The LineageOS Project
* Copyright (C) 2023-2025 The LineageOS 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.
* SPDX-License-Identifier: Apache-2.0
*/
package org.lineageos.xiaomiperipheralmanager;
import android.os.Bundle;
import android.util.Log;
import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity;
/**
* Settings activity for stylus/pen configuration
* Hosts the StylusSettingsFragment for user configuration
*/
public class StylusSettingsActivity extends CollapsingToolbarBaseActivity {
private static final String TAG = "XiaomiPenSettings";
private static final String TAG_STYLUS = "stylus";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i(TAG, "Opening stylus settings");
getFragmentManager().beginTransaction().replace(
com.android.settingslib.collapsingtoolbar.R.id.content_frame,
new StylusSettingsFragment(), TAG_STYLUS).commit();