From 060c4f1529a3f2dd84017e0950649e2527885617 Mon Sep 17 00:00:00 2001 From: Dennis Guse Date: Sat, 12 Sep 2020 00:03:42 +0200 Subject: [PATCH] Theming: add a SplashScreen for TrackListActivity. --- src/main/AndroidManifest.xml | 5 +++-- .../dennisguse/opentracks/TrackListActivity.java | 3 +++ src/main/res/drawable/splashscreen.xml | 16 ++++++++++++++++ src/main/res/values/themes_custom.xml | 4 ++++ 4 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 src/main/res/drawable/splashscreen.xml diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 095d097da..fc695c322 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and limitations under the License. --> @@ -138,7 +137,9 @@ limitations under the License. - + diff --git a/src/main/java/de/dennisguse/opentracks/TrackListActivity.java b/src/main/java/de/dennisguse/opentracks/TrackListActivity.java index 84d5b1bc5..f22529630 100644 --- a/src/main/java/de/dennisguse/opentracks/TrackListActivity.java +++ b/src/main/java/de/dennisguse/opentracks/TrackListActivity.java @@ -214,6 +214,9 @@ public class TrackListActivity extends AbstractListActivity implements ConfirmDe @Override protected void onCreate(Bundle savedInstanceState) { + // Reset theme after splash + setTheme(R.style.ThemeCustom); + super.onCreate(savedInstanceState); gpsStatusValue = GpsStatusValue.GPS_NONE; diff --git a/src/main/res/drawable/splashscreen.xml b/src/main/res/drawable/splashscreen.xml new file mode 100644 index 000000000..4eebbe4ee --- /dev/null +++ b/src/main/res/drawable/splashscreen.xml @@ -0,0 +1,16 @@ + + + + + + + + + \ No newline at end of file diff --git a/src/main/res/values/themes_custom.xml b/src/main/res/values/themes_custom.xml index ac8986c17..cf6ca8974 100644 --- a/src/main/res/values/themes_custom.xml +++ b/src/main/res/values/themes_custom.xml @@ -60,4 +60,8 @@ limitations under the License. @android:color/transparent true + +