File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
java/space/myhomework/android Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 11package space .myhomework .android ;
22
33import androidx .appcompat .app .AppCompatActivity ;
4+
5+ import android .content .Intent ;
6+ import android .net .Uri ;
47import android .os .Bundle ;
8+ import android .view .View ;
59
610public class SettingsActivity extends AppCompatActivity {
711
@@ -10,4 +14,9 @@ protected void onCreate(Bundle savedInstanceState) {
1014 super .onCreate (savedInstanceState );
1115 setContentView (R .layout .activity_settings );
1216 }
17+
18+ public void deleteAccount (View view ) {
19+ Intent browserIntent = new Intent (Intent .ACTION_VIEW , Uri .parse ("https://app.myhomework.space/#!settings:requestAccountDeletion" ));
20+ startActivity (browserIntent );
21+ }
1322}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ <LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools"
44 android : layout_width =" match_parent"
55 android : layout_height =" match_parent"
66 android : paddingBottom =" @dimen/activity_vertical_margin"
77 android : paddingLeft =" @dimen/activity_horizontal_margin"
88 android : paddingRight =" @dimen/activity_horizontal_margin"
99 android : paddingTop =" @dimen/activity_vertical_margin"
10+ android : orientation =" vertical"
1011 tools : context =" space.myhomework.android.SettingsActivity" >
1112
13+ <Button
14+ android : layout_width =" wrap_content"
15+ android : layout_height =" wrap_content"
16+ android : onClick =" deleteAccount"
17+ android : text =" Delete account" />
18+
1219 <TextView
1320 android : layout_width =" wrap_content"
1421 android : layout_height =" wrap_content"
15- android : text =" Settings will go here eventually I guess " />
22+ android : text =" Additional settings will go here in the future! " />
1623
17- </RelativeLayout >
24+ </LinearLayout >
You can’t perform that action at this time.
0 commit comments