Skip to content

Commit

Permalink
moved version to 'about' page
Browse files Browse the repository at this point in the history
  • Loading branch information
dakhnod committed Aug 12, 2018
1 parent 481d260 commit 09837a5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 20 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/d/d/meshenger/AboutActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ protected void onCreate(Bundle savedInstanceState) {
}).start();
findViewById(R.id.mailText).setOnClickListener(v -> sendMail());


((TextView) findViewById(R.id.versionTv)).setText("version: " + BuildConfig.VERSION_NAME);
}

public void sendMail(){
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/d/d/meshenger/SettingsActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
}
});

((TextView) findViewById(R.id.versionTv)).setText("version: " + BuildConfig.VERSION_NAME);
}

private void getLocale(){
Expand Down
10 changes: 9 additions & 1 deletion app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@
android:orientation="vertical"
android:layout_margin="10dp">


<TextView
android:id="@+id/versionTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="15dp" />

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/about_source"
android:textSize="15dp"/>
android:textSize="15dp"
android:layout_marginTop="40dp"/>

<TextView
android:layout_width="wrap_content"
Expand Down
18 changes: 0 additions & 18 deletions app/src/main/res/layout/activity_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,6 @@

</LinearLayout>

<TextView
android:id="@+id/versionTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/urlTV"
android:layout_centerHorizontal="true"
android:textSize="15dp" />

<TextView
android:id="@+id/urlTV"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="@string/app_url"
android:textSize="15dp"
android:autoLink="web"
android:layout_marginTop="5dp"/>

</RelativeLayout>

Expand Down

0 comments on commit 09837a5

Please sign in to comment.