فهرست منبع

replace floating mode

tama 9 ماه پیش
والد
کامیت
275f1d067e
2فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 2 1
      NexilisSampleCode/app/src/main/java/com/example/nexilissamplecodeburger/MainActivity.java
  2. 3 0
      main.py

+ 2 - 1
NexilisSampleCode/app/src/main/java/com/example/nexilissamplecodeburger/MainActivity.java

@@ -59,7 +59,8 @@ public class MainActivity extends AppCompatActivity {
          * 		You need to implement onSuccess(String NexilisUserID) & onFailed(String reasonCode) to handle the RESULT.
          *
          */
-        API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, 0, new Callback() {
+        int nexilisButtonMode = 0;
+        API.connect("***REPLACE***WITH***YOUR***APPLICATION***NAME***", "***REPLACE***WITH***YOUR***NEXILIS***ACCOUNT***", this, nexilisButtonMode, new Callback() {
 
             @Override
             public void onSuccess(final String NexilisUserID) {

+ 3 - 0
main.py

@@ -682,6 +682,9 @@ def change(app_id: str, platform: str, mode: str, path_dest: str, features: dict
                     replaced = line
                     if app_id:
                         replaced = replaced.replace('***REPLACE***WITH***YOUR***APPLICATION***NAME***', app_id)
+                    f.write(replaced)
+                elif "int nexilisButtonMode" in line:
+                    replaced = line
                     if mode == "floating":
                         replaced = replaced.replace("0", "1")
                     f.write(replaced)