Giter VIP home page Giter VIP logo

7sim's People

Contributors

github-actions[bot] avatar iusmac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

7sim's Issues

Build with Gradle died after the first beta release

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Build file '/mnt/storage/projects/7sim/build.gradle' line: 225

* What went wrong:
A problem occurred evaluating root project '7SIM'.
> fromIndex = -1

Bug originates from the gitDescribeTag() function. We expect output like <TAG>-<N-commits>-<commit-ish> when using git describe command, but it outputs just v1.0.0-beta, so it will be split as ["v1.0.0", "beta"]. The beta label breaks everything.

Possible solution would be using --long so we always get the 3 pieces. Note that, after split('-'), we'll get 4 pieces due to the beta label. Thus, need to take the last piece and second to last piece.

Scheduler doesn't resume after background restriction removed

Steps to reproduce:

  1. Open the screen of details about this application within the built-in Settings app
  2. Restrict background usage for the app
  3. Wait for the upcoming schedules to start
  4. Observe a notification in the notification panel informing about background usage restriction
  5. Remove the background usage restriction for the app
  6. Wait for the next schedule iteration
  7. Observe scheduler never launch again

In order to resume the scheduler after the background restriction for the app has been removed, need to manually trigger a telephony event, such as SIM state change (on/off) or eject and re-insert SIM card, or toggle "Use schedule" switch.

This behavior is expected, because re-scheduling of the next iteration should be done right processing weekly repeat schedules. All tasks should be executed in the background that is prohibited.

Crash on Android 14 due to QPR2 API changes

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: com.github.iusmac.sevensim, PID: 3782
E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method getHandlerExecutor()Lcom/android/internal/telephony/util/HandlerExecutor; in class Landroid/telephony/SubscriptionManager$OnSubscriptionsChangedListener; or its super classes (declaration of 'android.telephony.SubscriptionManager$OnSubscriptionsChangedListener' appears in /system/framework/framework.jar!classes3.dex)
E AndroidRuntime: 	at com.github.iusmac.sevensim.telephony.Subscriptions.registerSubscriptionManagerListener(Subscriptions.java:365)
E AndroidRuntime: 	at com.github.iusmac.sevensim.telephony.Subscriptions.addOnSubscriptionsChangedListener(Subscriptions.java:238)
E AndroidRuntime: 	at com.github.iusmac.sevensim.ui.sim.SimListActivity.onResume(SimListActivity.java:135)
E AndroidRuntime: 	at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1672)
E AndroidRuntime: 	at android.app.Activity.performResume(Activity.java:8933)
E AndroidRuntime: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:5166)
E AndroidRuntime: 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:5209)
E AndroidRuntime: 	at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:57)
E AndroidRuntime: 	at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:60)
E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:254)
E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:228)
E AndroidRuntime: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:91)
E AndroidRuntime: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2544)
E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
E AndroidRuntime: 	at android.os.Looper.loopOnce(Looper.java:232)
E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:317)
E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8496)
E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.