Skip to content

Instantly share code, notes, and snippets.

View Thorsten1976's full-sized avatar

Thorsten Giesecke Thorsten1976

View GitHub Profile
@Thorsten1976
Thorsten1976 / CompatUtils.java
Created October 20, 2020 10:24
Detect the interaction mode of the navigation bar (i.e. full screen gesture mode, 2-button navigation, 3-button navigation) in Android: navBarInteractionMode
import android.content.Context;
import android.content.res.Resources;
import androidx.annotation.IntDef;
import androidx.annotation.NonNull;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
public final class CompatUtils {
@Retention(RetentionPolicy.SOURCE)
@Thorsten1976
Thorsten1976 / patch.diff
Created April 9, 2014 22:50
Adds AndroidStudio and Gradle compatibility
From 85a307710e5e13dcfacbf5441c9b2ba7f6eff511 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <thorsten@giesecke.org>
Date: Mon, 7 Apr 2014 22:20:22 +0200
Subject: [PATCH] Added AndroidStudio and Gradle compatibility
---
TV-Browser/.gitignore | 10 ++
TV-Browser/bin/AndroidManifest.xml | 75 ----------
TV-Browser/bin/jarlist.cache | 3 -
TV-Browser/build.gradle | 65 ++++++++
@Thorsten1976
Thorsten1976 / patch.diff
Created April 9, 2014 21:51
Added AndroidStudio and Gradle compatibility
From 85a307710e5e13dcfacbf5441c9b2ba7f6eff511 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <thorsten@giesecke.org>
Date: Mon, 7 Apr 2014 22:20:22 +0200
Subject: [PATCH] Added AndroidStudio and Gradle compatibility
---
TV-Browser/.gitignore | 10 ++
TV-Browser/bin/AndroidManifest.xml | 75 ----------
TV-Browser/bin/jarlist.cache | 3 -
TV-Browser/build.gradle | 65 ++++++++
@Thorsten1976
Thorsten1976 / patch.diff
Created April 9, 2014 21:49
Added AndroidStudio and Gradle compatibility
From 85a307710e5e13dcfacbf5441c9b2ba7f6eff511 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <thorsten@giesecke.org>
Date: Mon, 7 Apr 2014 22:20:22 +0200
Subject: [PATCH] Added AndroidStudio and Gradle compatibility
---
TV-Browser/.gitignore | 10 ++
TV-Browser/bin/AndroidManifest.xml | 75 ----------
TV-Browser/bin/jarlist.cache | 3 -
TV-Browser/build.gradle | 65 ++++++++
@Thorsten1976
Thorsten1976 / patch.diff
Created April 9, 2014 21:49
Added AndroidStudio and Gradle compatibility
From 85a307710e5e13dcfacbf5441c9b2ba7f6eff511 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <thorsten@giesecke.org>
Date: Mon, 7 Apr 2014 22:20:22 +0200
Subject: [PATCH] Added AndroidStudio and Gradle compatibility
---
TV-Browser/.gitignore | 10 ++
TV-Browser/bin/AndroidManifest.xml | 75 ----------
TV-Browser/bin/jarlist.cache | 3 -
TV-Browser/build.gradle | 65 ++++++++
@Thorsten1976
Thorsten1976 / patch.diff
Created April 9, 2014 21:46
Added AndroidStudio and Gradle compatibility
From 85a307710e5e13dcfacbf5441c9b2ba7f6eff511 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <thorsten@giesecke.org>
Date: Mon, 7 Apr 2014 22:20:22 +0200
Subject: [PATCH] Added AndroidStudio and Gradle compatibility
---
TV-Browser/.gitignore | 10 ++
TV-Browser/bin/AndroidManifest.xml | 75 ----------
TV-Browser/bin/jarlist.cache | 3 -
TV-Browser/build.gradle | 65 ++++++++
From 93ff243343099f1763313ef63cb6df222c1f4258 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <info@locationad.de>
Date: Wed, 9 Apr 2014 22:59:47 +0200
Subject: [PATCH] Added white notification icon based on
http://developer.android.com/design/style/iconography.html
---
TV-Browser/TV-Browser-Notification.svg | 9 +++++++++
TV-Browser/res/drawable-hdpi/ic_notification.png | Bin 0 -> 1398 bytes
TV-Browser/res/drawable-hdpi/reminder.png | Bin 1506 -> 0 bytes
@Thorsten1976
Thorsten1976 / patch.diff
Created April 9, 2014 20:26
Fixed typos in values/strings.xml
From 9b9ff4de1603fd3d84bc48fdd491624389a8b779 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <info@locationad.de>
Date: Wed, 9 Apr 2014 22:23:55 +0200
Subject: [PATCH] Fixed typos in values/strings.xml
---
TV-Browser/res/values/strings.xml | 40 +++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/TV-Browser/res/values/strings.xml b/TV-Browser/res/values/strings.xml
From fe5886ca195b78f8bcbfac5a356fd2d464ec6c40 Mon Sep 17 00:00:00 2001
From: Thorsten Giesecke <thorsten@giesecke.org>
Date: Tue, 8 Apr 2014 01:10:40 +0200
Subject: [PATCH] Vulnerability fix for
http://securityintelligence.com/wp-content/uploads/2013/12/android-collapses-into-fragments.pdf
(introduced with Kitkat)
---
TV-Browser/proguard-project.txt | 3 +++
.../org/tvbrowser/settings/TvbPreferencesActivity.java | 18 ++++++++++++++++--