mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
ログ挿入
This commit is contained in:
1 file changed
+3
+3
@@ -4,6 +4,7 @@ import android.os.Bundle;
|
||||
|
||||
import androidx.fragment.app.Fragment;
|
||||
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -60,12 +61,14 @@ public class DebugSharedPrefEditorFragment extends Fragment {
|
||||
view.findViewById(R.id.loadButton).setOnClickListener(v -> {
|
||||
String key = loadKeyEditText.getText().toString();
|
||||
String value = prefCommon.getStringValue(key);
|
||||
Log.d("loadButton", "key:" + key + " value:" + value);
|
||||
view.findViewById(R.id.loadValueTextView).setContentDescription(value);
|
||||
});
|
||||
|
||||
view.findViewById(R.id.saveButton).setOnClickListener(v -> {
|
||||
String KeyValue = saveKeyEditText.getText().toString();
|
||||
String[] split = KeyValue.split(":", 2);
|
||||
Log.d("saveButton", "split[0]:" + split[0] + " split[1]:" + split[1]);
|
||||
prefCommon.setStringValue(split[0], split[1]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user