projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
initial material design changes for the action bar
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
ui
/
activity
/
FileDisplayActivity.java
diff --git
a/src/com/owncloud/android/ui/activity/FileDisplayActivity.java
b/src/com/owncloud/android/ui/activity/FileDisplayActivity.java
index
cfeb541
..
f7d28bd
100644
(file)
--- a/
src/com/owncloud/android/ui/activity/FileDisplayActivity.java
+++ b/
src/com/owncloud/android/ui/activity/FileDisplayActivity.java
@@
-196,9
+196,15
@@
public class FileDisplayActivity extends HookActivity
// according to the official
// documentation
// according to the official
// documentation
+ // enable ActionBar app icon to behave as action to toggle nav drawer
+ //getSupportActionBar().setDisplayHomeAsUpEnabled(true);
+ getSupportActionBar().setHomeButtonEnabled(true);
+
setSupportProgressBarIndeterminateVisibility(mSyncInProgress
/*|| mRefreshSharesInProgress*/);
// always AFTER setContentView(...) ; to work around bug in its implementation
setSupportProgressBarIndeterminateVisibility(mSyncInProgress
/*|| mRefreshSharesInProgress*/);
// always AFTER setContentView(...) ; to work around bug in its implementation
+
+ initDrawer();
setBackgroundText();
setBackgroundText();
@@
-209,7
+215,6
@@
public class FileDisplayActivity extends HookActivity
protected void onStart() {
Log_OC.v(TAG, "onStart() start");
super.onStart();
protected void onStart() {
Log_OC.v(TAG, "onStart() start");
super.onStart();
- getSupportActionBar().setIcon(DisplayUtils.getSeasonalIconId());
Log_OC.v(TAG, "onStart() end");
}
Log_OC.v(TAG, "onStart() end");
}
@@
-1028,7
+1033,9
@@
public class FileDisplayActivity extends HookActivity
startImagePreview(getFile());
} // TODO what about other kind of previews?
}
startImagePreview(getFile());
} // TODO what about other kind of previews?
}
-
+
+ setSupportProgressBarIndeterminate(false);
+
} finally {
if (intent != null) {
removeStickyBroadcast(intent);
} finally {
if (intent != null) {
removeStickyBroadcast(intent);
@@
-1166,7
+1173,6
@@
public class FileDisplayActivity extends HookActivity
}
}
-
@Override
protected ServiceConnection newTransferenceServiceConnection() {
return new ListServiceConnection();
@Override
protected ServiceConnection newTransferenceServiceConnection() {
return new ListServiceConnection();