ConfigAddActivity: Rename to AddActivity
Not everything needs to start with Config Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
90cd59c866
commit
5d04714eea
@ -20,7 +20,7 @@
|
||||
</intent-filter>
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ConfigAddActivity"
|
||||
android:name=".AddActivity"
|
||||
android:label="@string/edit_activity_title" />
|
||||
<activity
|
||||
android:name=".SettingsActivity"
|
||||
|
@ -10,11 +10,11 @@ import com.wireguard.config.Config;
|
||||
* Standalone activity for creating configurations.
|
||||
*/
|
||||
|
||||
public class ConfigAddActivity extends BaseConfigActivity {
|
||||
public class AddActivity extends BaseConfigActivity {
|
||||
@Override
|
||||
public void onCreate(final Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.config_add_activity);
|
||||
setContentView(R.layout.add_activity);
|
||||
}
|
||||
|
||||
@Override
|
@ -169,7 +169,7 @@ public class ConfigActivity extends BaseConfigActivity {
|
||||
onBackPressed();
|
||||
return true;
|
||||
case R.id.menu_action_add:
|
||||
startActivity(new Intent(this, ConfigAddActivity.class));
|
||||
startActivity(new Intent(this, AddActivity.class));
|
||||
return true;
|
||||
case R.id.menu_action_edit:
|
||||
// Try to make the editing fragment visible.
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/master_fragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
android:layout_height="match_parent"
|
||||
tools:ignore="MergeRootFrame" />
|
Loading…
Reference in New Issue
Block a user