Skip to content

Commit

Permalink
share to permission list navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
ShehanaIqbal committed May 25, 2020
1 parent ca68315 commit 95662a1
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public void goToShare(View view) {
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
DatabaseHelper.getInstance(this).insertAllowed(true);


}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,9 @@ public void goToAbout(View view) {
Intent intent = new Intent(share.this, about.class);
startActivity(intent);
}

public void goToPermissionList(View view){
Intent intent = new Intent(share.this, permission_list.class);
startActivity(intent);
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 22 additions & 3 deletions mobile-app/app/src/main/res/layout/activity_share.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,29 @@
android:background="@color/colorPrimary"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/icon_1"
android:layout_centerVertical="true"
android:layout_alignParentStart="true"
android:layout_marginEnd="15dp"
android:layout_width="wrap_content"
android:paddingVertical="8dp"
android:layout_height="wrap_content"
android:onClick="goToPermissionList"
android:src="@drawable/sharp_keyboard_arrow_left_white_24dp"
android:layout_marginRight="15dp"
android:layout_alignParentLeft="true" />

<LinearLayout
android:id="@+id/main"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
android:layout_toStartOf="@+id/icon_2"
android:gravity="center"
android:layout_toEndOf="@+id/icon_1"
android:layout_toRightOf="@+id/icon_1"
android:orientation="horizontal"
android:layout_toLeftOf="@+id/icon_2">

<ImageView
android:layout_width="57dp"
Expand All @@ -27,15 +45,16 @@
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingVertical="6dp"
android:text="goSAFE"
android:layout_centerVertical="true"
android:textAlignment="gravity"
android:textColor="#fff"
android:textSize="30sp" />

</LinearLayout>
<ImageView
android:id="@+id/icon_2"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_marginEnd="15dp"
Expand Down

0 comments on commit 95662a1

Please sign in to comment.