Giter Club home page Giter Club logo

Comments (5)

jannisveerkamp avatar jannisveerkamp commented on May 30, 2024

This is correct. The third Parameter has to be an int: The Version Code.

You didn't define it. Add

private static final int VERSION = 1;

to your class and you should be fine. You can also remove the last Parameter since its the standard behavior (TrayStorage.Type.USER).

from tray.

jonameson avatar jonameson commented on May 30, 2024

Hey, thanks for the quick reply. So the issue is not the VERSION param. I'm just saying that the constructors 4th param should be an enum of type "TrayStorage.Type". Or the "TrayStorage.Type" should be int and not enums. You guys should possible properly define that unless I'm not understanding something... :P

from tray.

jannisveerkamp avatar jannisveerkamp commented on May 30, 2024

I'm not sure if I understand you correctly. You can pass 4 Parameters into the Constructor:

  1. A context (Type: Context)
  2. The name of the module (Type: String)
  3. The version code (Type: int)
  4. (optional) A storage type (Type: TrayStorage.Type)

Your posted Code should work if you define VERSION as an int.

from tray.

jonameson avatar jonameson commented on May 30, 2024

Ah, you are correct. I was incorrectly using the constructor override. I was trying to pass the TrayStorage.Type as an int. My apologies. :/

from tray.

jannisveerkamp avatar jannisveerkamp commented on May 30, 2024

You're welcome πŸ˜„

from tray.

Related Issues (20)

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.