mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-02-07 03:53:25 +01:00
parent
20b09ae809
commit
fa256c69aa
@ -115,8 +115,8 @@ dependencies {
|
||||
compile 'com.google.dagger:dagger:2.0.2'
|
||||
compile 'org.attoparser:attoparser:1.4.0.RELEASE'
|
||||
compile 'com.j256.simplemagic:simplemagic:1.6'
|
||||
compile 'com.github.mariotaku.MediaViewerLibrary:base:0.9.6'
|
||||
compile 'com.github.mariotaku.MediaViewerLibrary:subsample-image-view:0.9.6'
|
||||
compile 'com.github.mariotaku.MediaViewerLibrary:base:0.9.7'
|
||||
compile 'com.github.mariotaku.MediaViewerLibrary:subsample-image-view:0.9.7'
|
||||
googleCompile 'com.google.android.gms:play-services-maps:8.4.0'
|
||||
// googleCompile 'com.google.maps.android:android-maps-utils:0.4'
|
||||
googleCompile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true }
|
||||
|
@ -99,7 +99,6 @@ import java.util.concurrent.TimeUnit;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
|
||||
public final class MediaViewerActivity extends AbsMediaViewerActivity implements Constants,
|
||||
AppCompatCallback, TaskStackBuilder.SupportParentable, ActionBarDrawerToggle.DelegateProvider,
|
||||
IExtendedActivity {
|
||||
@ -585,6 +584,7 @@ public final class MediaViewerActivity extends AbsMediaViewerActivity implements
|
||||
/**
|
||||
* @hide
|
||||
*/
|
||||
@Override
|
||||
public void invalidateOptionsMenu() {
|
||||
getDelegate().invalidateOptionsMenu();
|
||||
}
|
||||
@ -808,23 +808,6 @@ public final class MediaViewerActivity extends AbsMediaViewerActivity implements
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void displayMedia(CacheDownloadLoader.Result data) {
|
||||
super.displayMedia(data);
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hideProgress() {
|
||||
super.hideProgress();
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showProgress(boolean indeterminate, float progress) {
|
||||
super.showProgress(indeterminate, progress);
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
}
|
||||
|
||||
public static class VideoPageFragment extends CacheDownloadMediaViewerFragment
|
||||
@ -864,24 +847,6 @@ public final class MediaViewerActivity extends AbsMediaViewerActivity implements
|
||||
return getArguments().getBoolean(EXTRA_LOOP, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hideProgress() {
|
||||
super.hideProgress();
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showProgress(boolean indeterminate, float progress) {
|
||||
super.showProgress(indeterminate, progress);
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setMediaViewVisible(boolean visible) {
|
||||
super.setMediaViewVisible(visible);
|
||||
getActivity().supportInvalidateOptionsMenu();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean isAbleToLoad() {
|
||||
return getDownloadUri() != null;
|
||||
|
@ -1392,7 +1392,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
||||
@Override
|
||||
public void onLinkClick(String link, String orig, long accountId, long extraId, int type, boolean sensitive, int start, int end) {
|
||||
final ParcelableStatus status = adapter.getStatus();
|
||||
ParcelableMedia current = null;
|
||||
ParcelableMedia current;
|
||||
if ((current = ParcelableMedia.findByUrl(status.media, link)) != null) {
|
||||
expandOrOpenMedia(current);
|
||||
return;
|
||||
@ -1402,7 +1402,7 @@ public class StatusFragment extends BaseSupportFragment implements LoaderCallbac
|
||||
return;
|
||||
}
|
||||
if (type == TwidereLinkify.LINK_TYPE_STATUS && status.id == NumberUtils.toLong(link)) {
|
||||
expandOrOpenMedia(current);
|
||||
expandOrOpenMedia(null);
|
||||
return;
|
||||
}
|
||||
super.onLinkClick(link, orig, accountId, extraId, type, sensitive, start, end);
|
||||
|
@ -116,6 +116,7 @@ public class ColorPickerPreference extends DialogPreference implements DialogInt
|
||||
if (listener != null) {
|
||||
listener.onPreferenceChange(this, color);
|
||||
}
|
||||
notifyChanged();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user