mirror of
https://github.com/OMGeeky/andors-trail.git
synced 2026-02-23 15:38:29 +01:00
Move source change to build patch
This commit is contained in:
@@ -305,8 +305,7 @@ public final class MainActivity
|
||||
t = Toast.makeText(this, msg, duration);
|
||||
lastToast = new WeakReference<Toast>(t);
|
||||
} else {
|
||||
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && t.getView().isShown()) {
|
||||
if (Build.VERSION.SDK_INT >= 28 && t.getView().isShown()) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && t.getView().isShown()) {
|
||||
t.cancel();
|
||||
}
|
||||
t.setText(msg);
|
||||
|
||||
11
travis/support.stretch/debian/patches/00-version_codes.patch
Normal file
11
travis/support.stretch/debian/patches/00-version_codes.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/MainActivity.java
|
||||
+++ b/AndorsTrail/src/com/gpl/rpg/AndorsTrail/activity/MainActivity.java
|
||||
@@ -305,7 +305,7 @@ public final class MainActivity
|
||||
t = Toast.makeText(this, msg, duration);
|
||||
lastToast = new WeakReference<Toast>(t);
|
||||
} else {
|
||||
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && t.getView().isShown()) {
|
||||
+ if (Build.VERSION.SDK_INT >= 28 && t.getView().isShown()) {
|
||||
t.cancel();
|
||||
}
|
||||
t.setText(msg);
|
||||
@@ -1,7 +1,12 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
patch-stamp:
|
||||
[ -e debian/control ]
|
||||
patch -b -p1 -z .source-orig < $(wildcard debian/patches/*)
|
||||
touch $@
|
||||
|
||||
build-indep: build-indep-stamp
|
||||
build-indep-stamp:
|
||||
build-indep-stamp: patch-stamp
|
||||
[ -e debian/control ]
|
||||
travis/support/script
|
||||
touch $@
|
||||
@@ -12,9 +17,11 @@ build: build-indep
|
||||
|
||||
clean:
|
||||
[ -e debian/control ]
|
||||
rm -f build-indep-stamp debian/files
|
||||
rm -f build-indep-stamp debian/files patch-stamp
|
||||
cd AndorsTrail && rm -fr *.apk .gradle build build.gradle \
|
||||
gradle.properties keystore.p12 local.properties src/main
|
||||
find -name "*.source-orig" \
|
||||
-execdir sh -c 'mv $$0 $${0%.source-orig}' "{}" \;
|
||||
|
||||
binary-indep: build-indep
|
||||
[ -e debian/control ]
|
||||
|
||||
Reference in New Issue
Block a user