Comment clean up and Android Studio upgrade.

This commit is contained in:
casey langen 2017-07-19 10:55:06 -07:00
parent d433ac2f10
commit 8249641fee
3 changed files with 8 additions and 10 deletions

View File

@ -164,14 +164,14 @@ int main(int argc, char* argv[]) {
app.SetColorMode(colorMode);
/* set color theme */
/* theme */
std::string colorTheme = prefs->GetString(musik::box::prefs::keys::ColorTheme);
if (colorTheme.size()) {
colorTheme = GetApplicationDirectory() + "/themes/" + colorTheme + ".json";
app.SetColorTheme(colorTheme);
}
/* tray icon options */
/* tray icon */
app.SetMinimizeToTray(prefs->GetBool(musik::box::prefs::keys::MinimizeToTray, false));
if (prefs->GetBool(musik::box::prefs::keys::StartMinimized, false)) {
app.Minimize();
@ -179,7 +179,7 @@ int main(int argc, char* argv[]) {
app.SetMinimumSize(MIN_WIDTH, MIN_HEIGHT);
/* top-level layout */
/* main layout */
using Main = std::shared_ptr<MainLayout>;
Main mainLayout(new MainLayout(app, playback, transport, library));
@ -193,7 +193,9 @@ int main(int argc, char* argv[]) {
return globalHotkeys.Handle(kn);
});
/* blocking event loop */
app.Run(mainLayout);
/* done with the app *//
mainLayout->Stop();

View File

@ -332,16 +332,12 @@ process:
this->CheckShowOverlay();
this->EnsureFocusIsValid();
/* note that order is important here! dispatch pending messages first,
because they may muck around with layout, then redraw the window. if
done in the reverse order, the user may observe more flicker. */
/* needs to happen here, or else flicker */
Window::MessageQueue().Dispatch();
if (Window::WriteToScreen(this->state.input)) {
/* if we wrote to the screen that means panels could have shifted
around. ensure any visible overlay is still on top. */
if (this->state.overlayWindow && !this->state.overlayWindow->IsTop()) {
this->state.overlay->BringToTop();
this->state.overlay->BringToTop(); /* active overlay is always on top... */
}
}
}

View File

@ -4,7 +4,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha6'
classpath 'com.android.tools.build:gradle:3.0.0-alpha7'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}