NativeScript / NativeScript/plugins
[@nativescript/brightness] Obtained values bigger than allowed
オープン
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 206
- フォーク
- 123
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 1
説明
Manually setting my brightness to a 100% using the system UI and just running this on an Android device:
const brightness = new Brightness();
console.log(brightness.get());
console.log(brightness.getNative());
returns the following values:
JS: 803
JS: 2047
Aren't the allowed values from 0-100 and 0-255? (from the docs)
As a consequence, setting the value programatically to the highest allowed value (100) in my case results in the following brightness indicator, which should be on 100%:
This might probably be related 🤔
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
@nativescript/brightness の Android 実装から始め、報告された値を生成する get() と getNative() の経路を追跡します。それらの結果を文書化されている 0–100 と 0–255 の範囲と比較し、その後、文書化されている最大値を設定すると Android で期待されるシステムの明るさに到達することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, typescript
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100