Skip to content

Commit e6036e4

Browse files
committed
リファクタリング
1 parent d7b4bf4 commit e6036e4

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
android:label="@string/app_name"
1717
android:theme="@style/AppTheme">
1818
<activity
19-
android:name=".settings.DemoSettingActivity"
19+
android:name=".settings.DemoPageSettingActivity"
2020
android:label="@string/title_setting_demo_app"
2121
android:theme="@style/AppCompatTheme"/>
2222
<activity

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/java/org/deviceconnect/android/deviceplugin/switchbot/settings/DemoSettingActivity.java renamed to dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/java/org/deviceconnect/android/deviceplugin/switchbot/settings/DemoPageSettingActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
import org.deviceconnect.android.deviceplugin.switchbot.R;
66

7-
public class DemoSettingActivity extends BaseSettingActivity {
7+
public class DemoPageSettingActivity extends BaseSettingActivity {
88

99
@Override
1010
protected void onCreate(Bundle savedInstanceState) {
1111
super.onCreate(savedInstanceState);
12-
setContentView(R.layout.activity_demo_setting);
12+
setContentView(R.layout.activity_demo_page_setting);
1313

1414
}
1515
}

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/java/org/deviceconnect/android/deviceplugin/switchbot/settings/SwitchBotDemoSettingFragment.java renamed to dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/java/org/deviceconnect/android/deviceplugin/switchbot/settings/DemoPageSettingFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.deviceconnect.android.deviceplugin.switchbot.R;
1919
import org.deviceconnect.android.deviceplugin.switchbot.demo.SwitchBotDemoInstaller;
2020

21-
public class SwitchBotDemoSettingFragment extends DemoSettingFragment {
21+
public class DemoPageSettingFragment extends DemoSettingFragment {
2222
private static final String TAG = "SwitchBotDemoSetting";
2323
private static final Boolean DEBUG = BuildConfig.DEBUG;
2424

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/java/org/deviceconnect/android/deviceplugin/switchbot/settings/SettingActivity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ protected void onCreate(final Bundle savedInstanceState) {
7575
});
7676

7777
findViewById(R.id.text_title_demo_app).setOnClickListener((view) -> {
78-
Intent demoSettingActivity = new Intent(this, DemoSettingActivity.class);
79-
startActivity(demoSettingActivity);
78+
Intent demoPageSettingActivity = new Intent(this, DemoPageSettingActivity.class);
79+
startActivity(demoPageSettingActivity);
8080
});
8181
}
8282

dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/res/layout/activity_demo_setting.xml renamed to dConnectDevicePlugin/dConnectDeviceSwitchBot/plugin/src/main/res/layout/activity_demo_page_setting.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".settings.DemoSettingActivity">
7+
tools:context=".settings.DemoPageSettingActivity">
88

99
<fragment
1010
android:id="@+id/fragment"
11-
android:name="org.deviceconnect.android.deviceplugin.switchbot.settings.SwitchBotDemoSettingFragment"
11+
android:name="org.deviceconnect.android.deviceplugin.switchbot.settings.DemoPageSettingFragment"
1212
android:layout_width="0dp"
1313
android:layout_height="0dp"
1414
app:layout_constraintBottom_toBottomOf="parent"

0 commit comments

Comments
 (0)