Skip to content

Commit

Permalink
Handy Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy045 committed Aug 29, 2018
1 parent 11651ba commit 0464b1a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.github.Handy045:HandyTitleBar:1.2.1'
implementation 'com.github.Handy045:HandyTitleBar:1.2.3'

implementation rootProject.ext.dependencies.api_appcompatV7

Expand Down
2 changes: 1 addition & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ dependencies {
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.github.Handy045:HandyTitleBar:1.2.1'
implementation 'com.github.Handy045:HandyTitleBar:1.2.3'

api rootProject.ext.dependencies.api_appcompatV7
api rootProject.ext.dependencies.api_design
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public void onCreate(Bundle icicle) {
super.onCreate(icicle);
Window window = getWindow();
window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setRequestedOrientation(ScanConfig.KEY_SCREEN_ORIENTATION);

setContentView(R.layout.handy_activity_scan_single);

surfaceView = findViewById(R.id.preview_view);
Expand Down Expand Up @@ -114,7 +116,7 @@ public void onClick() {
cameraManager.setTorch(ScanConfig.KEY_USE_LIGHT);
setImageSrc(ScanConfig.KEY_USE_LIGHT ? R.drawable.handy_qrcode_icon_light_c : R.drawable.handy_qrcode_icon_light_n);

titleBar.removeRightAction();
titleBar.removeRightActions();
titleBar.addRightAction(this);
}
});
Expand Down

0 comments on commit 0464b1a

Please sign in to comment.