Skip to content

Commit

Permalink
Merge pull request #961 from gerhardol/feature/unique-resource-ids
Browse files Browse the repository at this point in the history
Unique resource ids
  • Loading branch information
gerhardol committed Aug 22, 2020
2 parents 037e2aa + 648a7f9 commit 97e968a
Show file tree
Hide file tree
Showing 45 changed files with 153 additions and 263 deletions.
2 changes: 1 addition & 1 deletion ANT-Android-SDKs
3 changes: 2 additions & 1 deletion app/assets/changes.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
</head>
<body>
<h1>What's new</h1>
<h2>v2.2.2.2</h2>
<h2>v2.2.2.3</h2>
<p>
<ul>
<li>#961 Resource ids must be unique</li>
<li>#960 Check for Battery Optimization when starting GPS</li>
<li>Avoid a few exceptions</li>
<li>Transifex ru, pl, de</li>
Expand Down
5 changes: 0 additions & 5 deletions app/res/drawable/fab_compat_bg.xml

This file was deleted.

9 changes: 0 additions & 9 deletions app/res/layout-v15/feed_row_activity.xml

This file was deleted.

64 changes: 0 additions & 64 deletions app/res/layout-v15/history.xml

This file was deleted.

11 changes: 0 additions & 11 deletions app/res/layout-v15/start_fab.xml

This file was deleted.

10 changes: 5 additions & 5 deletions app/res/layout/account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@

<LinearLayout
android:layout_margin="@dimen/activity_margin"
android:id="@+id/name"
android:id="@+id/account_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="center|center_horizontal|center_vertical" >

<TextView
android:id="@+id/account_list_name"
android:id="@+id/account_name"
style="@style/AccountListText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -42,7 +42,7 @@
android:scaleType="center" />

<ImageView
android:id="@+id/account_list_icon"
android:id="@+id/account_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minWidth="48dp"
Expand All @@ -56,10 +56,10 @@
android:id="@+id/account_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/name" >
android:layout_below="@id/account_view" >

<TableRow
android:id="@+id/table_row1"
android:id="@+id/account_table_row1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />

Expand Down
12 changes: 6 additions & 6 deletions app/res/layout/account_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
android:padding="16dp">

<TextView
android:id="@+id/section_title"
android:id="@+id/account_row_section_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
Expand All @@ -42,7 +42,7 @@
android:layout_height="40dp">

<ImageView
android:id="@+id/account_list_icon"
android:id="@+id/account_row_icon"
app:srcCompat="@drawable/circle_40dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand All @@ -52,7 +52,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/account_list_icon_text"
android:id="@+id/account_row_icon_text"
android:textSize="20sp"
android:textStyle="bold"
android:textColor="#ffffffff"
Expand All @@ -61,7 +61,7 @@
</FrameLayout>

<TextView
android:id="@+id/account_list_name"
android:id="@+id/account_row_name"
style="@style/AccountListText"
android:layout_width="0dp"
android:layout_height="wrap_content"
Expand All @@ -72,7 +72,7 @@
android:minHeight="48dp" />

<androidx.appcompat.widget.SwitchCompat
android:id="@+id/account_list_feed"
android:id="@+id/account_row_feed"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
Expand All @@ -82,7 +82,7 @@
android:contentDescription="@string/feed" />

<androidx.appcompat.widget.SwitchCompat
android:id="@+id/account_list_upload"
android:id="@+id/account_row_upload"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginLeft="16dp"
Expand Down
2 changes: 1 addition & 1 deletion app/res/layout/bottom_tab_indicator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
tools:ignore="ContentDescription"/>

<!--TextView
android:id="@+id/title"
android:id="@+id/bottom_title"
style="@style/BottomNavigationTabText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Expand Down
4 changes: 2 additions & 2 deletions app/res/layout/create_advanced_workout.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
android:paddingTop="8dp"
android:scrollbarAlwaysDrawVerticalTrack="true"
android:layout_below="@+id/new_workout_spinner"
android:layout_above="@+id/button_table"/>
android:layout_above="@+id/create_button_table"/>

<TableLayout
android:id="@+id/button_table"
android:id="@+id/create_button_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
Expand Down
2 changes: 1 addition & 1 deletion app/res/layout/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/tab1_layout"
android:id="@+id/feed_tab1_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
Expand Down
21 changes: 3 additions & 18 deletions app/res/layout/feed_row_activity.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
<?xml version="1.0" encoding="utf-8"?><!--
~ Copyright (C) 2012 - 2013 jonas.oreland@gmail.com
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp">

<include layout="@layout/feed_row_contents" />

</FrameLayout>
</androidx.cardview.widget.CardView>
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions app/res/layout/filepermission.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
android:paddingTop="@dimen/dialog_padding_vert">

<TextView
android:id="@+id/textViewAuthNotice"
android:id="@+id/filepermission_textViewAuthNotice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:textAppearance="?android:attr/textAppearanceSmall"/>

<TableRow
android:id="@+id/table_row1"
android:id="@+id/filepermission_table_row1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

Expand Down
45 changes: 24 additions & 21 deletions app/res/layout/history.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>

<!--
~ Copyright (C) 2012 jonas.oreland@gmail.com
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<merge android:id="@+id/tab1_layout"
~ Copyright (C) 2012 jonas.oreland@gmail.com
~
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU General Public License as published by
~ the Free Software Foundation, either version 3 of the License, or
~ (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU General Public License for more details.
~
~ You should have received a copy of the GNU General Public License
~ along with this program. If not, see <http://www.gnu.org/licenses/>.
-->

<merge android:id="@+id/history_tab1_layout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -28,7 +30,7 @@
android:orientation="vertical">

<androidx.appcompat.widget.Toolbar
android:id="@+id/feed_actionbar"
android:id="@+id/history_actionbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/colorPrimary"
Expand All @@ -46,16 +48,17 @@

</LinearLayout>

<ImageButton
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/history_add"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right|bottom"
android:layout_margin="16dp"
android:background="@drawable/fab_compat_bg"
android:contentDescription="@string/Add_manual_entry"
android:padding="16dp"
android:tooltipText="@string/Add_manual_entry"
app:backgroundTint="@color/colorPrimaryFab"
app:fabSize="normal"
app:srcCompat="@drawable/ic_add_white_24dp"
/>
tools:ignore="UnusedAttribute"/>

</merge>
2 changes: 1 addition & 1 deletion app/res/layout/history_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
android:padding="16dp">

<TextView
android:id="@+id/section_title"
android:id="@+id/history_section_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
Expand Down
4 changes: 2 additions & 2 deletions app/res/layout/manage_workouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
android:layout_alignParentRight="false"
android:layout_alignParentLeft="false"
android:layout_alignParentStart="false"
android:layout_above="@+id/button_table" />
android:layout_above="@+id/manage_button_table" />

<TableLayout
android:id="@+id/button_table"
android:id="@+id/manage_button_tablebutton_table"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">
Expand Down
Loading

0 comments on commit 97e968a

Please sign in to comment.