mirror of
https://github.com/seven332/EhViewer
synced 2026-11-30 11:08:04 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6c060b5e2 | ||
|
|
def283de08 | ||
|
|
be3d3189ec | ||
|
|
0581b7cc53 |
No files matched your search
+2
-2
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hippo.ehviewer"
|
||||
android:versionCode="13"
|
||||
android:versionName="0.4.3" >
|
||||
android:versionCode="14"
|
||||
android:versionName="0.4.4" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.hippo.ehviewer"
|
||||
android:versionCode="13"
|
||||
android:versionName="0.4.3" >
|
||||
android:versionCode="14"
|
||||
android:versionName="0.4.4" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,122 @@
|
||||
# view AndroidManifest.xml #generated:15
|
||||
-keep class com.hippo.ehviewer.AppContext { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:24
|
||||
-keep class com.hippo.ehviewer.StartActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:77
|
||||
-keep class com.hippo.ehviewer.activity.DownloadActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:69
|
||||
-keep class com.hippo.ehviewer.activity.FavouriteActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:55
|
||||
-keep class com.hippo.ehviewer.activity.MangaActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:48
|
||||
-keep class com.hippo.ehviewer.activity.MangaDetailActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:86
|
||||
-keep class com.hippo.ehviewer.activity.MangaDownloadActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:35
|
||||
-keep class com.hippo.ehviewer.activity.MangaListActivity { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:61
|
||||
-keep class com.hippo.ehviewer.activity.SettingsActivity { <init>(...); }
|
||||
|
||||
# view res/layout/gl_root_group.xml #generated:7
|
||||
-keep class com.hippo.ehviewer.gallery.ui.GLRootView { <init>(...); }
|
||||
|
||||
# view res/xml/settings.xml #generated:13
|
||||
# view res/xml/settings.xml #generated:21
|
||||
# view res/xml/settings.xml #generated:5
|
||||
# view res/xml/settings.xml #generated:71
|
||||
-keep class com.hippo.ehviewer.preference.AutoListPreference { <init>(...); }
|
||||
|
||||
# view AndroidManifest.xml #generated:94
|
||||
-keep class com.hippo.ehviewer.service.DownloadService { <init>(...); }
|
||||
|
||||
# view res/layout/dialog.xml #generated:70
|
||||
# view res/layout/dialog.xml #generated:77
|
||||
# view res/layout/dialog.xml #generated:84
|
||||
-keep class com.hippo.ehviewer.view.AlertButton { <init>(...); }
|
||||
|
||||
# view res/layout/filter.xml #generated:19
|
||||
# view res/layout/filter.xml #generated:27
|
||||
# view res/layout/filter.xml #generated:37
|
||||
# view res/layout/filter.xml #generated:45
|
||||
# view res/layout/filter.xml #generated:55
|
||||
# view res/layout/filter.xml #generated:63
|
||||
# view res/layout/filter.xml #generated:73
|
||||
# view res/layout/filter.xml #generated:81
|
||||
# view res/layout/filter.xml #generated:91
|
||||
# view res/layout/filter.xml #generated:99
|
||||
-keep class com.hippo.ehviewer.view.CheckImage { <init>(...); }
|
||||
|
||||
# view res/layout/download_item.xml #generated:1
|
||||
-keep class com.hippo.ehviewer.view.DownloadItemLayout { <init>(...); }
|
||||
|
||||
# view res/layout/list.xml #generated:6
|
||||
-keep class com.hippo.ehviewer.view.GetPaddingRelativeLayout { <init>(...); }
|
||||
|
||||
# view res/layout/manga.xml #generated:1
|
||||
-keep class com.hippo.ehviewer.view.MangaViewPager { <init>(...); }
|
||||
|
||||
# view res/layout/detail.xml #generated:20
|
||||
# view res/layout/download_item.xml #generated:8
|
||||
-keep class com.hippo.ehviewer.view.OlImageView { <init>(...); }
|
||||
|
||||
# view res/layout/list_menu_list.xml #generated:1
|
||||
-keep class com.hippo.ehviewer.view.TagListView { <init>(...); }
|
||||
|
||||
# view res/layout/page_list.xml #generated:13
|
||||
-keep class com.hippo.ehviewer.widget.AutoWrapLayout { <init>(...); }
|
||||
|
||||
# view res/layout/list.xml #generated:1
|
||||
-keep class com.hippo.ehviewer.widget.DrawerLayout { <init>(...); }
|
||||
|
||||
# view res/layout/list_item.xml #generated:6
|
||||
-keep class com.hippo.ehviewer.widget.LoadImageView { <init>(...); }
|
||||
|
||||
# view res/layout/list.xml #generated:12
|
||||
-keep class com.hippo.ehviewer.widget.PullListView { <init>(...); }
|
||||
|
||||
# onClick res/layout/page_list_panel.xml #generated:6
|
||||
-keepclassmembers class * { *** ButtonBack(...); }
|
||||
|
||||
# onClick res/layout/page_list_panel.xml #generated:25
|
||||
-keepclassmembers class * { *** ButtonFront(...); }
|
||||
|
||||
# onClick res/layout/page_list.xml #generated:28
|
||||
-keepclassmembers class * { *** ButtonPreviewRefresh(...); }
|
||||
|
||||
# onClick res/layout/menu_login.xml #generated:17
|
||||
-keepclassmembers class * { *** buttonCheckLogin(...); }
|
||||
|
||||
# onClick res/layout/detail_offensive.xml #generated:41
|
||||
-keepclassmembers class * { *** buttonEvery(...); }
|
||||
|
||||
# onClick res/layout/detail_offensive.xml #generated:23
|
||||
# onClick res/layout/detail_pining.xml #generated:15
|
||||
-keepclassmembers class * { *** buttonFinsh(...); }
|
||||
|
||||
# onClick res/layout/menu_login.xml #generated:6
|
||||
-keepclassmembers class * { *** buttonLogin(...); }
|
||||
|
||||
# onClick res/layout/menu_login_over.xml #generated:16
|
||||
-keepclassmembers class * { *** buttonLogout(...); }
|
||||
|
||||
# onClick res/layout/detail_offensive.xml #generated:31
|
||||
-keepclassmembers class * { *** buttonOnce(...); }
|
||||
|
||||
# onClick res/layout/detail_normal.xml #generated:73
|
||||
-keepclassmembers class * { *** buttonRead(...); }
|
||||
|
||||
# onClick res/layout/detail.xml #generated:60
|
||||
# onClick res/layout/list.xml #generated:25
|
||||
-keepclassmembers class * { *** buttonRefresh(...); }
|
||||
|
||||
# onClick res/layout/page_list_panel.xml #generated:12
|
||||
-keepclassmembers class * { *** goTo(...); }
|
||||
|
||||
Binary file not shown.
+20
-20
@@ -1,20 +1,20 @@
|
||||
# To enable ProGuard in your project, edit project.properties
|
||||
# to define the proguard.config property as described in that file.
|
||||
#
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the ProGuard
|
||||
# include property in project.properties.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
# To enable ProGuard in your project, edit project.properties
|
||||
# to define the proguard.config property as described in that file.
|
||||
#
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the ProGuard
|
||||
# include property in project.properties.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
+199426
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,700 @@
|
||||
android.support.v4.app.BackStackState
|
||||
android.support.v4.app.BackStackState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.app.Fragment$SavedState
|
||||
android.support.v4.app.Fragment$SavedState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.app.FragmentManagerState
|
||||
android.support.v4.app.FragmentManagerState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.app.FragmentState
|
||||
android.support.v4.app.FragmentState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.app.FragmentTabHost: void setOnTabChangedListener(android.widget.TabHost$OnTabChangeListener)
|
||||
android.support.v4.app.FragmentTabHost$SavedState
|
||||
android.support.v4.app.FragmentTabHost$SavedState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.content.ModernAsyncTask$Status: android.support.v4.content.ModernAsyncTask$Status[] values()
|
||||
android.support.v4.content.ModernAsyncTask$Status: android.support.v4.content.ModernAsyncTask$Status valueOf(java.lang.String)
|
||||
android.support.v4.view.PagerTabStrip: void setTabIndicatorColor(int)
|
||||
android.support.v4.view.PagerTabStrip: void setTabIndicatorColorResource(int)
|
||||
android.support.v4.view.PagerTabStrip: int getTabIndicatorColor()
|
||||
android.support.v4.view.PagerTabStrip: void setTextSpacing(int)
|
||||
android.support.v4.view.PagerTabStrip: void setBackgroundDrawable(android.graphics.drawable.Drawable)
|
||||
android.support.v4.view.PagerTabStrip: void setBackgroundColor(int)
|
||||
android.support.v4.view.PagerTabStrip: void setBackgroundResource(int)
|
||||
android.support.v4.view.PagerTabStrip: void setDrawFullUnderline(boolean)
|
||||
android.support.v4.view.PagerTabStrip: boolean getDrawFullUnderline()
|
||||
android.support.v4.view.PagerTabStrip: int getMinHeight()
|
||||
android.support.v4.view.PagerTitleStrip: void setSingleLineAllCaps(android.widget.TextView)
|
||||
android.support.v4.view.PagerTitleStrip: void setTextSpacing(int)
|
||||
android.support.v4.view.PagerTitleStrip: int getTextSpacing()
|
||||
android.support.v4.view.PagerTitleStrip: void setNonPrimaryAlpha(float)
|
||||
android.support.v4.view.PagerTitleStrip: void setTextColor(int)
|
||||
android.support.v4.view.PagerTitleStrip: void setGravity(int)
|
||||
android.support.v4.view.PagerTitleStrip: int getMinHeight()
|
||||
android.support.v4.view.ViewPager: void setScrollState(int)
|
||||
android.support.v4.view.ViewPager: void setAdapter(android.support.v4.view.PagerAdapter)
|
||||
android.support.v4.view.ViewPager: android.support.v4.view.PagerAdapter getAdapter()
|
||||
android.support.v4.view.ViewPager: void setOnAdapterChangeListener(android.support.v4.view.ViewPager$OnAdapterChangeListener)
|
||||
android.support.v4.view.ViewPager: int getClientWidth()
|
||||
android.support.v4.view.ViewPager: void setCurrentItem(int)
|
||||
android.support.v4.view.ViewPager: int getCurrentItem()
|
||||
android.support.v4.view.ViewPager: void setOnPageChangeListener(android.support.v4.view.ViewPager$OnPageChangeListener)
|
||||
android.support.v4.view.ViewPager: void setChildrenDrawingOrderEnabledCompat(boolean)
|
||||
android.support.v4.view.ViewPager: int getOffscreenPageLimit()
|
||||
android.support.v4.view.ViewPager: void setOffscreenPageLimit(int)
|
||||
android.support.v4.view.ViewPager: void setPageMargin(int)
|
||||
android.support.v4.view.ViewPager: int getPageMargin()
|
||||
android.support.v4.view.ViewPager: void setPageMarginDrawable(android.graphics.drawable.Drawable)
|
||||
android.support.v4.view.ViewPager: void setPageMarginDrawable(int)
|
||||
android.support.v4.view.ViewPager: void setScrollingCacheEnabled(boolean)
|
||||
android.support.v4.view.ViewPager$SavedState
|
||||
android.support.v4.view.ViewPager$SavedState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.widget.DrawerLayout: void setScrimColor(int)
|
||||
android.support.v4.widget.DrawerLayout: void setDrawerListener(android.support.v4.widget.DrawerLayout$DrawerListener)
|
||||
android.support.v4.widget.DrawerLayout: void setDrawerLockMode(int)
|
||||
android.support.v4.widget.DrawerLayout$SavedState
|
||||
android.support.v4.widget.DrawerLayout$SavedState: android.os.Parcelable$Creator CREATOR
|
||||
android.support.v4.widget.SlidingPaneLayout: void setParallaxDistance(int)
|
||||
android.support.v4.widget.SlidingPaneLayout: int getParallaxDistance()
|
||||
android.support.v4.widget.SlidingPaneLayout: void setSliderFadeColor(int)
|
||||
android.support.v4.widget.SlidingPaneLayout: int getSliderFadeColor()
|
||||
android.support.v4.widget.SlidingPaneLayout: void setCoveredFadeColor(int)
|
||||
android.support.v4.widget.SlidingPaneLayout: int getCoveredFadeColor()
|
||||
android.support.v4.widget.SlidingPaneLayout: void setPanelSlideListener(android.support.v4.widget.SlidingPaneLayout$PanelSlideListener)
|
||||
android.support.v4.widget.SlidingPaneLayout: void setShadowDrawable(android.graphics.drawable.Drawable)
|
||||
android.support.v4.widget.SlidingPaneLayout: void setShadowResource(int)
|
||||
android.support.v4.widget.SlidingPaneLayout$SavedState
|
||||
android.support.v4.widget.SlidingPaneLayout$SavedState: android.os.Parcelable$Creator CREATOR
|
||||
com.hippo.ehviewer.AppContext
|
||||
com.hippo.ehviewer.AppContext: AppContext()
|
||||
com.hippo.ehviewer.R$array: int download_item_long_click
|
||||
com.hippo.ehviewer.R$array: int favourite_item_long_click
|
||||
com.hippo.ehviewer.R$array: int is_exhentai
|
||||
com.hippo.ehviewer.R$array: int list_item_long_click
|
||||
com.hippo.ehviewer.R$array: int list_list_title
|
||||
com.hippo.ehviewer.R$array: int min_rating
|
||||
com.hippo.ehviewer.R$array: int page_scaling_entries
|
||||
com.hippo.ehviewer.R$array: int page_scaling_entry_values
|
||||
com.hippo.ehviewer.R$array: int preference_screen_ori_entries
|
||||
com.hippo.ehviewer.R$array: int preference_screen_ori_entry_values
|
||||
com.hippo.ehviewer.R$array: int preference_update_server_entries
|
||||
com.hippo.ehviewer.R$array: int preference_update_server_entry_values
|
||||
com.hippo.ehviewer.R$array: int start_position_entries
|
||||
com.hippo.ehviewer.R$array: int start_position_values
|
||||
com.hippo.ehviewer.R$attr: int adjustViewBounds
|
||||
com.hippo.ehviewer.R$attr: int baseLine
|
||||
com.hippo.ehviewer.R$attr: int baseline
|
||||
com.hippo.ehviewer.R$attr: int baselineAlignBottom
|
||||
com.hippo.ehviewer.R$attr: int cropToPadding
|
||||
com.hippo.ehviewer.R$attr: int drawableAlpha
|
||||
com.hippo.ehviewer.R$attr: int mask
|
||||
com.hippo.ehviewer.R$attr: int maxHeight
|
||||
com.hippo.ehviewer.R$attr: int maxWidth
|
||||
com.hippo.ehviewer.R$attr: int scaleType
|
||||
com.hippo.ehviewer.R$attr: int src
|
||||
com.hippo.ehviewer.R$attr: int tint
|
||||
com.hippo.ehviewer.R$color: int blue_dark
|
||||
com.hippo.ehviewer.R$color: int blue_light
|
||||
com.hippo.ehviewer.R$dimen: int activity_horizontal_margin
|
||||
com.hippo.ehviewer.R$dimen: int activity_vertical_margin
|
||||
com.hippo.ehviewer.R$dimen: int menu_offset
|
||||
com.hippo.ehviewer.R$dimen: int shadow_width
|
||||
com.hippo.ehviewer.R$drawable: int artistcg
|
||||
com.hippo.ehviewer.R$drawable: int asianporn
|
||||
com.hippo.ehviewer.R$drawable: int back
|
||||
com.hippo.ehviewer.R$drawable: int cosplay
|
||||
com.hippo.ehviewer.R$drawable: int doujinshi
|
||||
com.hippo.ehviewer.R$drawable: int front
|
||||
com.hippo.ehviewer.R$drawable: int gamecg
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_action_search
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_completed
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_core_overflow
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_download
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_favourite
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_jump
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_pause
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_refresh
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_remove
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_search
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_settings
|
||||
com.hippo.ehviewer.R$drawable: int ic_action_start
|
||||
com.hippo.ehviewer.R$drawable: int ic_launcher
|
||||
com.hippo.ehviewer.R$drawable: int ic_navigation_drawer
|
||||
com.hippo.ehviewer.R$drawable: int ic_pulltorefresh_arrow
|
||||
com.hippo.ehviewer.R$drawable: int ic_touch
|
||||
com.hippo.ehviewer.R$drawable: int imageset
|
||||
com.hippo.ehviewer.R$drawable: int manga
|
||||
com.hippo.ehviewer.R$drawable: int mask
|
||||
com.hippo.ehviewer.R$drawable: int misc
|
||||
com.hippo.ehviewer.R$drawable: int non_h
|
||||
com.hippo.ehviewer.R$drawable: int progress_large
|
||||
com.hippo.ehviewer.R$drawable: int progress_small
|
||||
com.hippo.ehviewer.R$drawable: int sadpanda
|
||||
com.hippo.ehviewer.R$drawable: int scrollbar_blue
|
||||
com.hippo.ehviewer.R$drawable: int scrollbar_white
|
||||
com.hippo.ehviewer.R$drawable: int spinner_16_inner
|
||||
com.hippo.ehviewer.R$drawable: int spinner_16_outer
|
||||
com.hippo.ehviewer.R$drawable: int spinner_76_inner
|
||||
com.hippo.ehviewer.R$drawable: int spinner_76_outer
|
||||
com.hippo.ehviewer.R$drawable: int star
|
||||
com.hippo.ehviewer.R$drawable: int star_empty
|
||||
com.hippo.ehviewer.R$drawable: int star_half
|
||||
com.hippo.ehviewer.R$drawable: int unknown
|
||||
com.hippo.ehviewer.R$drawable: int welcome
|
||||
com.hippo.ehviewer.R$drawable: int western
|
||||
com.hippo.ehviewer.R$id: int action
|
||||
com.hippo.ehviewer.R$id: int action_download
|
||||
com.hippo.ehviewer.R$id: int action_favourite
|
||||
com.hippo.ehviewer.R$id: int action_jump
|
||||
com.hippo.ehviewer.R$id: int action_refresh
|
||||
com.hippo.ehviewer.R$id: int action_search
|
||||
com.hippo.ehviewer.R$id: int action_settings
|
||||
com.hippo.ehviewer.R$id: int app_start_view
|
||||
com.hippo.ehviewer.R$id: int autoCompleteTextView1
|
||||
com.hippo.ehviewer.R$id: int bottom
|
||||
com.hippo.ehviewer.R$id: int bottom_panel
|
||||
com.hippo.ehviewer.R$id: int button_artistcg
|
||||
com.hippo.ehviewer.R$id: int button_asianporn
|
||||
com.hippo.ehviewer.R$id: int button_check_login
|
||||
com.hippo.ehviewer.R$id: int button_cosplay
|
||||
com.hippo.ehviewer.R$id: int button_doujinshi
|
||||
com.hippo.ehviewer.R$id: int button_gamecg
|
||||
com.hippo.ehviewer.R$id: int button_imageset
|
||||
com.hippo.ehviewer.R$id: int button_login
|
||||
com.hippo.ehviewer.R$id: int button_manga
|
||||
com.hippo.ehviewer.R$id: int button_misc
|
||||
com.hippo.ehviewer.R$id: int button_non_h
|
||||
com.hippo.ehviewer.R$id: int button_read
|
||||
com.hippo.ehviewer.R$id: int button_western
|
||||
com.hippo.ehviewer.R$id: int center
|
||||
com.hippo.ehviewer.R$id: int centerCrop
|
||||
com.hippo.ehviewer.R$id: int centerInside
|
||||
com.hippo.ehviewer.R$id: int checkbox_advance
|
||||
com.hippo.ehviewer.R$id: int checkbox_sdesc
|
||||
com.hippo.ehviewer.R$id: int checkbox_sdt1
|
||||
com.hippo.ehviewer.R$id: int checkbox_sdt2
|
||||
com.hippo.ehviewer.R$id: int checkbox_sh
|
||||
com.hippo.ehviewer.R$id: int checkbox_sname
|
||||
com.hippo.ehviewer.R$id: int checkbox_sr
|
||||
com.hippo.ehviewer.R$id: int checkbox_stags
|
||||
com.hippo.ehviewer.R$id: int checkbox_sto
|
||||
com.hippo.ehviewer.R$id: int checkbox_storr
|
||||
com.hippo.ehviewer.R$id: int cover
|
||||
com.hippo.ehviewer.R$id: int custom
|
||||
com.hippo.ehviewer.R$id: int detail_average
|
||||
com.hippo.ehviewer.R$id: int detail_button_cancel
|
||||
com.hippo.ehviewer.R$id: int detail_button_every
|
||||
com.hippo.ehviewer.R$id: int detail_button_known
|
||||
com.hippo.ehviewer.R$id: int detail_button_once
|
||||
com.hippo.ehviewer.R$id: int detail_cover
|
||||
com.hippo.ehviewer.R$id: int detail_language
|
||||
com.hippo.ehviewer.R$id: int detail_pages
|
||||
com.hippo.ehviewer.R$id: int detail_people
|
||||
com.hippo.ehviewer.R$id: int detail_posted
|
||||
com.hippo.ehviewer.R$id: int detail_rate
|
||||
com.hippo.ehviewer.R$id: int detail_refresh
|
||||
com.hippo.ehviewer.R$id: int detail_size
|
||||
com.hippo.ehviewer.R$id: int detail_title
|
||||
com.hippo.ehviewer.R$id: int detail_type
|
||||
com.hippo.ehviewer.R$id: int detail_uploader
|
||||
com.hippo.ehviewer.R$id: int detail_wait
|
||||
com.hippo.ehviewer.R$id: int download
|
||||
com.hippo.ehviewer.R$id: int drawer_layout
|
||||
com.hippo.ehviewer.R$id: int drawer_login
|
||||
com.hippo.ehviewer.R$id: int drawer_login_over
|
||||
com.hippo.ehviewer.R$id: int favourite
|
||||
com.hippo.ehviewer.R$id: int filter_advance
|
||||
com.hippo.ehviewer.R$id: int fitCenter
|
||||
com.hippo.ehviewer.R$id: int fitEnd
|
||||
com.hippo.ehviewer.R$id: int fitStart
|
||||
com.hippo.ehviewer.R$id: int fitXY
|
||||
com.hippo.ehviewer.R$id: int footer_progressBar
|
||||
com.hippo.ehviewer.R$id: int footer_tip_text
|
||||
com.hippo.ehviewer.R$id: int gl_root_view
|
||||
com.hippo.ehviewer.R$id: int head_arrowImageView
|
||||
com.hippo.ehviewer.R$id: int head_contentLayout
|
||||
com.hippo.ehviewer.R$id: int head_progressBar
|
||||
com.hippo.ehviewer.R$id: int head_tipsTextView
|
||||
com.hippo.ehviewer.R$id: int header
|
||||
com.hippo.ehviewer.R$id: int header_arrow_image
|
||||
com.hippo.ehviewer.R$id: int header_progressBar
|
||||
com.hippo.ehviewer.R$id: int header_tip_text
|
||||
com.hippo.ehviewer.R$id: int info
|
||||
com.hippo.ehviewer.R$id: int is_exhentai
|
||||
com.hippo.ehviewer.R$id: int list
|
||||
com.hippo.ehviewer.R$id: int list_button_logout
|
||||
com.hippo.ehviewer.R$id: int list_jump_edit
|
||||
com.hippo.ehviewer.R$id: int list_jump_sum
|
||||
com.hippo.ehviewer.R$id: int list_jump_to
|
||||
com.hippo.ehviewer.R$id: int list_list
|
||||
com.hippo.ehviewer.R$id: int list_main
|
||||
com.hippo.ehviewer.R$id: int list_menu_list
|
||||
com.hippo.ehviewer.R$id: int list_menu_login
|
||||
com.hippo.ehviewer.R$id: int list_no_found
|
||||
com.hippo.ehviewer.R$id: int list_refresh
|
||||
com.hippo.ehviewer.R$id: int list_view
|
||||
com.hippo.ehviewer.R$id: int list_wait_first
|
||||
com.hippo.ehviewer.R$id: int list_wait_login
|
||||
com.hippo.ehviewer.R$id: int list_wait_logout
|
||||
com.hippo.ehviewer.R$id: int main
|
||||
com.hippo.ehviewer.R$id: int manga_detail
|
||||
com.hippo.ehviewer.R$id: int manga_detail_normal
|
||||
com.hippo.ehviewer.R$id: int manga_detail_offensive
|
||||
com.hippo.ehviewer.R$id: int manga_detail_pining
|
||||
com.hippo.ehviewer.R$id: int manga_detail_scrollview
|
||||
com.hippo.ehviewer.R$id: int matrix
|
||||
com.hippo.ehviewer.R$id: int message
|
||||
com.hippo.ehviewer.R$id: int name
|
||||
com.hippo.ehviewer.R$id: int negative_button
|
||||
com.hippo.ehviewer.R$id: int neutral_button
|
||||
com.hippo.ehviewer.R$id: int page_list
|
||||
com.hippo.ehviewer.R$id: int pager
|
||||
com.hippo.ehviewer.R$id: int paper_list_layout
|
||||
com.hippo.ehviewer.R$id: int paper_list_wait
|
||||
com.hippo.ehviewer.R$id: int password
|
||||
com.hippo.ehviewer.R$id: int positive_button
|
||||
com.hippo.ehviewer.R$id: int preview_button_refresh
|
||||
com.hippo.ehviewer.R$id: int preview_num
|
||||
com.hippo.ehviewer.R$id: int progressBar
|
||||
com.hippo.ehviewer.R$id: int rate
|
||||
com.hippo.ehviewer.R$id: int remove
|
||||
com.hippo.ehviewer.R$id: int sadpanda
|
||||
com.hippo.ehviewer.R$id: int scroll_view
|
||||
com.hippo.ehviewer.R$id: int search_bar
|
||||
com.hippo.ehviewer.R$id: int search_text
|
||||
com.hippo.ehviewer.R$id: int set_name_edit
|
||||
com.hippo.ehviewer.R$id: int spinner_min_rating
|
||||
com.hippo.ehviewer.R$id: int tags_layout
|
||||
com.hippo.ehviewer.R$id: int text_username
|
||||
com.hippo.ehviewer.R$id: int thumb
|
||||
com.hippo.ehviewer.R$id: int title
|
||||
com.hippo.ehviewer.R$id: int top
|
||||
com.hippo.ehviewer.R$id: int type
|
||||
com.hippo.ehviewer.R$id: int username
|
||||
com.hippo.ehviewer.R$id: int wait_message
|
||||
com.hippo.ehviewer.R$layout: int detail
|
||||
com.hippo.ehviewer.R$layout: int detail_normal
|
||||
com.hippo.ehviewer.R$layout: int detail_offensive
|
||||
com.hippo.ehviewer.R$layout: int detail_pining
|
||||
com.hippo.ehviewer.R$layout: int dialog
|
||||
com.hippo.ehviewer.R$layout: int download
|
||||
com.hippo.ehviewer.R$layout: int download_item
|
||||
com.hippo.ehviewer.R$layout: int favourite
|
||||
com.hippo.ehviewer.R$layout: int filter
|
||||
com.hippo.ehviewer.R$layout: int gl_root_group
|
||||
com.hippo.ehviewer.R$layout: int jump
|
||||
com.hippo.ehviewer.R$layout: int list
|
||||
com.hippo.ehviewer.R$layout: int list_item
|
||||
com.hippo.ehviewer.R$layout: int list_item_text
|
||||
com.hippo.ehviewer.R$layout: int list_menu_list
|
||||
com.hippo.ehviewer.R$layout: int list_menu_login
|
||||
com.hippo.ehviewer.R$layout: int login
|
||||
com.hippo.ehviewer.R$layout: int manga
|
||||
com.hippo.ehviewer.R$layout: int menu_item
|
||||
com.hippo.ehviewer.R$layout: int menu_login
|
||||
com.hippo.ehviewer.R$layout: int menu_login_over
|
||||
com.hippo.ehviewer.R$layout: int page_list
|
||||
com.hippo.ehviewer.R$layout: int page_list_panel
|
||||
com.hippo.ehviewer.R$layout: int pull_list_view
|
||||
com.hippo.ehviewer.R$layout: int pull_list_view_footer
|
||||
com.hippo.ehviewer.R$layout: int pull_list_view_header
|
||||
com.hippo.ehviewer.R$layout: int pull_to_refresh_head
|
||||
com.hippo.ehviewer.R$layout: int search_view
|
||||
com.hippo.ehviewer.R$layout: int set_name
|
||||
com.hippo.ehviewer.R$layout: int start
|
||||
com.hippo.ehviewer.R$layout: int wait
|
||||
com.hippo.ehviewer.R$menu: int detail
|
||||
com.hippo.ehviewer.R$menu: int main
|
||||
com.hippo.ehviewer.R$raw: int change_log
|
||||
com.hippo.ehviewer.R$raw: int thanks
|
||||
com.hippo.ehviewer.R$string: int _default
|
||||
com.hippo.ehviewer.R$string: int action_refresh
|
||||
com.hippo.ehviewer.R$string: int action_settings
|
||||
com.hippo.ehviewer.R$string: int actual_size
|
||||
com.hippo.ehviewer.R$string: int add
|
||||
com.hippo.ehviewer.R$string: int add_tag
|
||||
com.hippo.ehviewer.R$string: int add_to_favourite
|
||||
com.hippo.ehviewer.R$string: int advance_search_left
|
||||
com.hippo.ehviewer.R$string: int app_name
|
||||
com.hippo.ehviewer.R$string: int bottom_left
|
||||
com.hippo.ehviewer.R$string: int bottom_right
|
||||
com.hippo.ehviewer.R$string: int cache_large
|
||||
com.hippo.ehviewer.R$string: int center
|
||||
com.hippo.ehviewer.R$string: int changelog
|
||||
com.hippo.ehviewer.R$string: int check_login
|
||||
com.hippo.ehviewer.R$string: int checkbox_advance
|
||||
com.hippo.ehviewer.R$string: int checkbox_sdesc
|
||||
com.hippo.ehviewer.R$string: int checkbox_sdt1
|
||||
com.hippo.ehviewer.R$string: int checkbox_sdt2
|
||||
com.hippo.ehviewer.R$string: int checkbox_sh
|
||||
com.hippo.ehviewer.R$string: int checkbox_sname
|
||||
com.hippo.ehviewer.R$string: int checkbox_sr
|
||||
com.hippo.ehviewer.R$string: int checkbox_stags
|
||||
com.hippo.ehviewer.R$string: int checkbox_sto
|
||||
com.hippo.ehviewer.R$string: int checkbox_storr
|
||||
com.hippo.ehviewer.R$string: int checking_update
|
||||
com.hippo.ehviewer.R$string: int create_cache_error
|
||||
com.hippo.ehviewer.R$string: int dailog_check_network
|
||||
com.hippo.ehviewer.R$string: int dailog_network_error_no
|
||||
com.hippo.ehviewer.R$string: int dailog_network_error_yes
|
||||
com.hippo.ehviewer.R$string: int dailog_waring_no
|
||||
com.hippo.ehviewer.R$string: int dailog_waring_plain
|
||||
com.hippo.ehviewer.R$string: int dailog_waring_title
|
||||
com.hippo.ehviewer.R$string: int dailog_waring_yes
|
||||
com.hippo.ehviewer.R$string: int detail_average
|
||||
com.hippo.ehviewer.R$string: int detail_button_cancel
|
||||
com.hippo.ehviewer.R$string: int detail_button_every
|
||||
com.hippo.ehviewer.R$string: int detail_button_known
|
||||
com.hippo.ehviewer.R$string: int detail_button_once
|
||||
com.hippo.ehviewer.R$string: int detail_language
|
||||
com.hippo.ehviewer.R$string: int detail_not_rated
|
||||
com.hippo.ehviewer.R$string: int detail_offensive
|
||||
com.hippo.ehviewer.R$string: int detail_offensive_title
|
||||
com.hippo.ehviewer.R$string: int detail_pages
|
||||
com.hippo.ehviewer.R$string: int detail_people
|
||||
com.hippo.ehviewer.R$string: int detail_pining
|
||||
com.hippo.ehviewer.R$string: int detail_posted
|
||||
com.hippo.ehviewer.R$string: int detail_preview_error
|
||||
com.hippo.ehviewer.R$string: int detail_size
|
||||
com.hippo.ehviewer.R$string: int detail_uploader
|
||||
com.hippo.ehviewer.R$string: int develop
|
||||
com.hippo.ehviewer.R$string: int dialog_messgae_login_or_not
|
||||
com.hippo.ehviewer.R$string: int dialog_send_crash_no
|
||||
com.hippo.ehviewer.R$string: int dialog_send_crash_plain
|
||||
com.hippo.ehviewer.R$string: int dialog_send_crash_title
|
||||
com.hippo.ehviewer.R$string: int dialog_send_crash_yes
|
||||
com.hippo.ehviewer.R$string: int dialog_title_login_or_not
|
||||
com.hippo.ehviewer.R$string: int dialog_wait_send_crash_msg
|
||||
com.hippo.ehviewer.R$string: int download
|
||||
com.hippo.ehviewer.R$string: int download_successfully
|
||||
com.hippo.ehviewer.R$string: int download_task_finished
|
||||
com.hippo.ehviewer.R$string: int download_unsuccessfully
|
||||
com.hippo.ehviewer.R$string: int downloading
|
||||
com.hippo.ehviewer.R$string: int em_can_not_reach
|
||||
com.hippo.ehviewer.R$string: int em_check_login_error
|
||||
com.hippo.ehviewer.R$string: int em_client_protocol
|
||||
com.hippo.ehviewer.R$string: int em_host_error
|
||||
com.hippo.ehviewer.R$string: int em_invalid_request
|
||||
com.hippo.ehviewer.R$string: int em_login_error
|
||||
com.hippo.ehviewer.R$string: int em_logout_error
|
||||
com.hippo.ehviewer.R$string: int em_network_error
|
||||
com.hippo.ehviewer.R$string: int em_no_network
|
||||
com.hippo.ehviewer.R$string: int em_no_network_2
|
||||
com.hippo.ehviewer.R$string: int em_no_sdcard
|
||||
com.hippo.ehviewer.R$string: int em_open_input_stream_error
|
||||
com.hippo.ehviewer.R$string: int em_parser_error
|
||||
com.hippo.ehviewer.R$string: int em_put_cache_error
|
||||
com.hippo.ehviewer.R$string: int em_read_input_stream_error
|
||||
com.hippo.ehviewer.R$string: int em_redirection_error
|
||||
com.hippo.ehviewer.R$string: int em_request_error
|
||||
com.hippo.ehviewer.R$string: int em_response_code_error
|
||||
com.hippo.ehviewer.R$string: int em_retry
|
||||
com.hippo.ehviewer.R$string: int em_retry_times
|
||||
com.hippo.ehviewer.R$string: int em_timeout
|
||||
com.hippo.ehviewer.R$string: int em_unexpected_response_code
|
||||
com.hippo.ehviewer.R$string: int em_unknown_error
|
||||
com.hippo.ehviewer.R$string: int em_unknown_host
|
||||
com.hippo.ehviewer.R$string: int em_url_error
|
||||
com.hippo.ehviewer.R$string: int em_url_format_error
|
||||
com.hippo.ehviewer.R$string: int error
|
||||
com.hippo.ehviewer.R$string: int exit_tip
|
||||
com.hippo.ehviewer.R$string: int favourite
|
||||
com.hippo.ehviewer.R$string: int first_page
|
||||
com.hippo.ehviewer.R$string: int fit_to_height
|
||||
com.hippo.ehviewer.R$string: int fit_to_screen
|
||||
com.hippo.ehviewer.R$string: int fit_to_width
|
||||
com.hippo.ehviewer.R$string: int fixed_scale
|
||||
com.hippo.ehviewer.R$string: int footer_fail
|
||||
com.hippo.ehviewer.R$string: int footer_loaded
|
||||
com.hippo.ehviewer.R$string: int footer_loading
|
||||
com.hippo.ehviewer.R$string: int found_update
|
||||
com.hippo.ehviewer.R$string: int hint_no_keyword
|
||||
com.hippo.ehviewer.R$string: int homepage
|
||||
com.hippo.ehviewer.R$string: int input_error
|
||||
com.hippo.ehviewer.R$string: int jump
|
||||
com.hippo.ehviewer.R$string: int jump_sum
|
||||
com.hippo.ehviewer.R$string: int jump_to
|
||||
com.hippo.ehviewer.R$string: int landscape
|
||||
com.hippo.ehviewer.R$string: int last_page
|
||||
com.hippo.ehviewer.R$string: int list_title
|
||||
com.hippo.ehviewer.R$string: int load_pre
|
||||
com.hippo.ehviewer.R$string: int login
|
||||
com.hippo.ehviewer.R$string: int logout
|
||||
com.hippo.ehviewer.R$string: int menu
|
||||
com.hippo.ehviewer.R$string: int new_tag_name
|
||||
com.hippo.ehviewer.R$string: int next_page
|
||||
com.hippo.ehviewer.R$string: int no_found
|
||||
com.hippo.ehviewer.R$string: int not_login
|
||||
com.hippo.ehviewer.R$string: int not_started
|
||||
com.hippo.ehviewer.R$string: int password
|
||||
com.hippo.ehviewer.R$string: int period
|
||||
com.hippo.ehviewer.R$string: int portrait
|
||||
com.hippo.ehviewer.R$string: int pre_page
|
||||
com.hippo.ehviewer.R$string: int preference_author
|
||||
com.hippo.ehviewer.R$string: int preference_author_summary
|
||||
com.hippo.ehviewer.R$string: int preference_auto_page_cache
|
||||
com.hippo.ehviewer.R$string: int preference_auto_page_cache_summary_off
|
||||
com.hippo.ehviewer.R$string: int preference_auto_page_cache_summary_on
|
||||
com.hippo.ehviewer.R$string: int preference_cache
|
||||
com.hippo.ehviewer.R$string: int preference_cache_summary
|
||||
com.hippo.ehviewer.R$string: int preference_cache_summary_no
|
||||
com.hippo.ehviewer.R$string: int preference_category_about
|
||||
com.hippo.ehviewer.R$string: int preference_category_cache
|
||||
com.hippo.ehviewer.R$string: int preference_category_display
|
||||
com.hippo.ehviewer.R$string: int preference_clear_cache
|
||||
com.hippo.ehviewer.R$string: int preference_download_path
|
||||
com.hippo.ehviewer.R$string: int preference_page_scaling
|
||||
com.hippo.ehviewer.R$string: int preference_screen_ori
|
||||
com.hippo.ehviewer.R$string: int preference_settings_title
|
||||
com.hippo.ehviewer.R$string: int preference_start_position
|
||||
com.hippo.ehviewer.R$string: int preference_update_server
|
||||
com.hippo.ehviewer.R$string: int pull_load_cancel
|
||||
com.hippo.ehviewer.R$string: int pull_load_doing
|
||||
com.hippo.ehviewer.R$string: int pull_load_done
|
||||
com.hippo.ehviewer.R$string: int pull_load_pull
|
||||
com.hippo.ehviewer.R$string: int pull_load_release
|
||||
com.hippo.ehviewer.R$string: int pull_pre_cancel
|
||||
com.hippo.ehviewer.R$string: int pull_pre_doing
|
||||
com.hippo.ehviewer.R$string: int pull_pre_done
|
||||
com.hippo.ehviewer.R$string: int pull_pre_pull
|
||||
com.hippo.ehviewer.R$string: int pull_pre_release
|
||||
com.hippo.ehviewer.R$string: int pull_refresh_cancel
|
||||
com.hippo.ehviewer.R$string: int pull_refresh_doing
|
||||
com.hippo.ehviewer.R$string: int pull_refresh_done
|
||||
com.hippo.ehviewer.R$string: int pull_refresh_pull
|
||||
com.hippo.ehviewer.R$string: int pull_refresh_release
|
||||
com.hippo.ehviewer.R$string: int read
|
||||
com.hippo.ehviewer.R$string: int refresh
|
||||
com.hippo.ehviewer.R$string: int remove
|
||||
com.hippo.ehviewer.R$string: int remove_info_data
|
||||
com.hippo.ehviewer.R$string: int retry_max_next
|
||||
com.hippo.ehviewer.R$string: int retry_max_pre
|
||||
com.hippo.ehviewer.R$string: int sadpanda
|
||||
com.hippo.ehviewer.R$string: int some_page
|
||||
com.hippo.ehviewer.R$string: int star_2
|
||||
com.hippo.ehviewer.R$string: int star_3
|
||||
com.hippo.ehviewer.R$string: int star_4
|
||||
com.hippo.ehviewer.R$string: int star_5
|
||||
com.hippo.ehviewer.R$string: int start_download_task
|
||||
com.hippo.ehviewer.R$string: int start_reloading
|
||||
com.hippo.ehviewer.R$string: int tag_change_name
|
||||
com.hippo.ehviewer.R$string: int tag_name
|
||||
com.hippo.ehviewer.R$string: int tag_name_empty
|
||||
com.hippo.ehviewer.R$string: int tag_name_exist
|
||||
com.hippo.ehviewer.R$string: int tap_update
|
||||
com.hippo.ehviewer.R$string: int thanks
|
||||
com.hippo.ehviewer.R$string: int toast_add_download
|
||||
com.hippo.ehviewer.R$string: int toast_add_favourite
|
||||
com.hippo.ehviewer.R$string: int toast_invalid_page
|
||||
com.hippo.ehviewer.R$string: int toast_login_failed
|
||||
com.hippo.ehviewer.R$string: int toast_login_succeeded
|
||||
com.hippo.ehviewer.R$string: int toast_logout_failed
|
||||
com.hippo.ehviewer.R$string: int toast_logout_succeeded
|
||||
com.hippo.ehviewer.R$string: int top_left
|
||||
com.hippo.ehviewer.R$string: int top_right
|
||||
com.hippo.ehviewer.R$string: int unfinished
|
||||
com.hippo.ehviewer.R$string: int up_to_date
|
||||
com.hippo.ehviewer.R$string: int update
|
||||
com.hippo.ehviewer.R$string: int update_message
|
||||
com.hippo.ehviewer.R$string: int update_server_google
|
||||
com.hippo.ehviewer.R$string: int update_server_qiniu
|
||||
com.hippo.ehviewer.R$string: int username
|
||||
com.hippo.ehviewer.R$string: int wait
|
||||
com.hippo.ehviewer.R$string: int waiting
|
||||
com.hippo.ehviewer.R$string: int what_to_do
|
||||
com.hippo.ehviewer.R$string: int zoom_in
|
||||
com.hippo.ehviewer.R$string: int zoom_out
|
||||
com.hippo.ehviewer.R$style: int ActionBar
|
||||
com.hippo.ehviewer.R$style: int AppTheme
|
||||
com.hippo.ehviewer.R$style: int AppTheme_NoActionBar
|
||||
com.hippo.ehviewer.R$style: int AppTheme_NoActionBar_Transparent
|
||||
com.hippo.ehviewer.R$style: int Button
|
||||
com.hippo.ehviewer.R$style: int Button_Blue
|
||||
com.hippo.ehviewer.R$style: int Button_White
|
||||
com.hippo.ehviewer.R$style: int OverFlow
|
||||
com.hippo.ehviewer.R$style: int PopupMenu
|
||||
com.hippo.ehviewer.R$style: int ProgressBar
|
||||
com.hippo.ehviewer.R$style: int ProgressBar_Large
|
||||
com.hippo.ehviewer.R$style: int ProgressBar_Small
|
||||
com.hippo.ehviewer.R$styleable: int[] AutoWrapLayout
|
||||
com.hippo.ehviewer.R$styleable: int AutoWrapLayout_baseLine
|
||||
com.hippo.ehviewer.R$styleable: int[] CheckImage
|
||||
com.hippo.ehviewer.R$styleable: int CheckImage_mask
|
||||
com.hippo.ehviewer.R$styleable: int[] SuperImageView
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_adjustViewBounds
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_baseline
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_baselineAlignBottom
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_cropToPadding
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_drawableAlpha
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_maxHeight
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_maxWidth
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_scaleType
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_src
|
||||
com.hippo.ehviewer.R$styleable: int SuperImageView_tint
|
||||
com.hippo.ehviewer.R$xml: int searchable
|
||||
com.hippo.ehviewer.R$xml: int settings
|
||||
com.hippo.ehviewer.StartActivity
|
||||
com.hippo.ehviewer.StartActivity: StartActivity()
|
||||
com.hippo.ehviewer.activity.DownloadActivity
|
||||
com.hippo.ehviewer.activity.DownloadActivity: DownloadActivity()
|
||||
com.hippo.ehviewer.activity.FavouriteActivity
|
||||
com.hippo.ehviewer.activity.FavouriteActivity: FavouriteActivity()
|
||||
com.hippo.ehviewer.activity.FavouriteActivity: void buttonListItemCancel(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaActivity
|
||||
com.hippo.ehviewer.activity.MangaActivity: MangaActivity()
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: MangaDetailActivity()
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void buttonRefresh(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void buttonFinsh(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void buttonOnce(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void buttonEvery(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void buttonRead(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void ButtonBack(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void ButtonFront(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void ButtonPreviewRefresh(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDetailActivity: void goTo(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaDownloadActivity
|
||||
com.hippo.ehviewer.activity.MangaDownloadActivity: MangaDownloadActivity()
|
||||
com.hippo.ehviewer.activity.MangaListActivity
|
||||
com.hippo.ehviewer.activity.MangaListActivity: MangaListActivity()
|
||||
com.hippo.ehviewer.activity.MangaListActivity: void buttonRefresh(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaListActivity: void buttonLogout(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaListActivity: void buttonLogin(android.view.View)
|
||||
com.hippo.ehviewer.activity.MangaListActivity: void buttonCheckLogin(android.view.View)
|
||||
com.hippo.ehviewer.activity.SettingsActivity
|
||||
com.hippo.ehviewer.activity.SettingsActivity: SettingsActivity()
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: GLRootView(android.content.Context)
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: GLRootView(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: void setContentPane(com.hippo.ehviewer.gallery.ui.GLView)
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: void setOrientationSource(com.hippo.ehviewer.gallery.ui.OrientationSource)
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: int getDisplayRotation()
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: int getCompensation()
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: android.graphics.Matrix getCompensationMatrix()
|
||||
com.hippo.ehviewer.gallery.ui.GLRootView: void setLightsOutMode(boolean)
|
||||
com.hippo.ehviewer.preference.AutoListPreference
|
||||
com.hippo.ehviewer.preference.AutoListPreference: AutoListPreference(android.content.Context)
|
||||
com.hippo.ehviewer.preference.AutoListPreference: AutoListPreference(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.service.DownloadService
|
||||
com.hippo.ehviewer.service.DownloadService: DownloadService()
|
||||
com.hippo.ehviewer.view.AlertButton
|
||||
com.hippo.ehviewer.view.AlertButton: AlertButton(android.content.Context)
|
||||
com.hippo.ehviewer.view.AlertButton: AlertButton(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.AlertButton: AlertButton(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.CheckImage
|
||||
com.hippo.ehviewer.view.CheckImage: CheckImage(android.content.Context)
|
||||
com.hippo.ehviewer.view.CheckImage: CheckImage(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.CheckImage: CheckImage(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.DownloadItemLayout
|
||||
com.hippo.ehviewer.view.DownloadItemLayout: DownloadItemLayout(android.content.Context)
|
||||
com.hippo.ehviewer.view.DownloadItemLayout: DownloadItemLayout(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.DownloadItemLayout: DownloadItemLayout(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.GetPaddingRelativeLayout
|
||||
com.hippo.ehviewer.view.GetPaddingRelativeLayout: GetPaddingRelativeLayout(android.content.Context)
|
||||
com.hippo.ehviewer.view.GetPaddingRelativeLayout: GetPaddingRelativeLayout(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.GetPaddingRelativeLayout: GetPaddingRelativeLayout(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.OlImageView
|
||||
com.hippo.ehviewer.view.OlImageView: void setOnLoadListener(com.hippo.ehviewer.view.OlImageView$OnLoadListener)
|
||||
com.hippo.ehviewer.view.OlImageView: OlImageView(android.content.Context)
|
||||
com.hippo.ehviewer.view.OlImageView: OlImageView(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.OlImageView: OlImageView(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.OlImageView: void setUrl(java.lang.String)
|
||||
com.hippo.ehviewer.view.OlImageView: java.lang.String getUrl()
|
||||
com.hippo.ehviewer.view.OlImageView: void setKey(java.lang.String)
|
||||
com.hippo.ehviewer.view.OlImageView: java.lang.String getKey()
|
||||
com.hippo.ehviewer.view.OlImageView: int getStatus()
|
||||
com.hippo.ehviewer.view.SuperImageView: SuperImageView(android.content.Context)
|
||||
com.hippo.ehviewer.view.SuperImageView: SuperImageView(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.SuperImageView: SuperImageView(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.SuperImageView: boolean getAdjustViewBounds()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setAdjustViewBounds(boolean)
|
||||
com.hippo.ehviewer.view.SuperImageView: int getMaxWidth()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setMaxWidth(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: int getMaxHeight()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setMaxHeight(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: android.graphics.drawable.Drawable getDrawable()
|
||||
com.hippo.ehviewer.view.SuperImageView: int getResourceWidth()
|
||||
com.hippo.ehviewer.view.SuperImageView: int getResourceHeight()
|
||||
com.hippo.ehviewer.view.SuperImageView: android.graphics.Movie getMovie()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageResource(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageURI(android.net.Uri)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageDrawable(android.graphics.drawable.Drawable)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageMovie(android.graphics.Movie)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageInputStream(java.io.InputStream)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageBitmap(android.graphics.Bitmap)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setSelected(boolean)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageLevel(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setScaleType(com.hippo.ehviewer.view.SuperImageView$ScaleType)
|
||||
com.hippo.ehviewer.view.SuperImageView: com.hippo.ehviewer.view.SuperImageView$ScaleType getScaleType()
|
||||
com.hippo.ehviewer.view.SuperImageView: android.graphics.Matrix getImageMatrix()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageMatrix(android.graphics.Matrix)
|
||||
com.hippo.ehviewer.view.SuperImageView: boolean getCropToPadding()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setCropToPadding(boolean)
|
||||
com.hippo.ehviewer.view.SuperImageView: int getBaseline()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setBaseline(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setBaselineAlignBottom(boolean)
|
||||
com.hippo.ehviewer.view.SuperImageView: boolean getBaselineAlignBottom()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setColorFilter(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setXfermode(android.graphics.Xfermode)
|
||||
com.hippo.ehviewer.view.SuperImageView: android.graphics.ColorFilter getColorFilter()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setColorFilter(android.graphics.ColorFilter)
|
||||
com.hippo.ehviewer.view.SuperImageView: int getImageAlpha()
|
||||
com.hippo.ehviewer.view.SuperImageView: void setImageAlpha(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setAlpha(int)
|
||||
com.hippo.ehviewer.view.SuperImageView: void setVisibility(int)
|
||||
com.hippo.ehviewer.view.SuperImageView$ScaleType: com.hippo.ehviewer.view.SuperImageView$ScaleType[] values()
|
||||
com.hippo.ehviewer.view.SuperImageView$ScaleType: com.hippo.ehviewer.view.SuperImageView$ScaleType valueOf(java.lang.String)
|
||||
com.hippo.ehviewer.view.TagListView
|
||||
com.hippo.ehviewer.view.TagListView: TagListView(android.content.Context)
|
||||
com.hippo.ehviewer.view.TagListView: TagListView(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.view.TagListView: TagListView(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.view.TagListView: void setStableItemCount(int)
|
||||
com.hippo.ehviewer.view.TagListView: void setOnModifyListener(com.hippo.ehviewer.view.TagListView$OnModifyListener)
|
||||
com.hippo.ehviewer.view.TagListView: void setOnMoveLister(com.hippo.ehviewer.view.TagListView$OnMoveLister)
|
||||
com.hippo.ehviewer.view.TagListView: void setItemList(java.util.ArrayList)
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout: AutoWrapLayout(android.content.Context)
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout: AutoWrapLayout(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout: AutoWrapLayout(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout: void setBaseLine(com.hippo.ehviewer.widget.AutoWrapLayout$BaseLine)
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout: com.hippo.ehviewer.widget.AutoWrapLayout$BaseLine getScaleType()
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout$BaseLine: com.hippo.ehviewer.widget.AutoWrapLayout$BaseLine[] values()
|
||||
com.hippo.ehviewer.widget.AutoWrapLayout$BaseLine: com.hippo.ehviewer.widget.AutoWrapLayout$BaseLine valueOf(java.lang.String)
|
||||
com.hippo.ehviewer.widget.DrawerLayout
|
||||
com.hippo.ehviewer.widget.DrawerLayout: DrawerLayout(android.content.Context)
|
||||
com.hippo.ehviewer.widget.DrawerLayout: DrawerLayout(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.widget.DrawerLayout: DrawerLayout(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.widget.DrawerLayout: void setScrimColor(int)
|
||||
com.hippo.ehviewer.widget.DrawerLayout: void setDrawerListener(com.hippo.ehviewer.widget.DrawerLayout$DrawerListener)
|
||||
com.hippo.ehviewer.widget.DrawerLayout: void setDrawerLockMode(int)
|
||||
com.hippo.ehviewer.widget.DrawerLayout: void setEnabled(boolean)
|
||||
com.hippo.ehviewer.widget.DrawerLayout$SavedState
|
||||
com.hippo.ehviewer.widget.DrawerLayout$SavedState: android.os.Parcelable$Creator CREATOR
|
||||
com.hippo.ehviewer.widget.LoadImageView
|
||||
com.hippo.ehviewer.widget.LoadImageView: LoadImageView(android.content.Context)
|
||||
com.hippo.ehviewer.widget.LoadImageView: LoadImageView(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.widget.LoadImageView: LoadImageView(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.widget.LoadImageView: void setState(int)
|
||||
com.hippo.ehviewer.widget.LoadImageView: void setOnClickListener(com.hippo.ehviewer.ImageLoadManager)
|
||||
com.hippo.ehviewer.widget.LoadImageView: java.lang.String getUrl()
|
||||
com.hippo.ehviewer.widget.LoadImageView: java.lang.String getKey()
|
||||
com.hippo.ehviewer.widget.LoadImageView: int getState()
|
||||
com.hippo.ehviewer.widget.PullListView
|
||||
com.hippo.ehviewer.widget.PullListView: PullListView(android.content.Context)
|
||||
com.hippo.ehviewer.widget.PullListView: PullListView(android.content.Context,android.util.AttributeSet)
|
||||
com.hippo.ehviewer.widget.PullListView: PullListView(android.content.Context,android.util.AttributeSet,int)
|
||||
com.hippo.ehviewer.widget.PullListView: android.widget.ListView getListView()
|
||||
com.hippo.ehviewer.widget.PullListView: void setHeaderEnabled(boolean)
|
||||
com.hippo.ehviewer.widget.PullListView: void setOnRefreshListener(com.hippo.ehviewer.widget.PullListView$OnHeaderRefreshListener)
|
||||
com.hippo.ehviewer.widget.PullListView: void setFooterEnabled(boolean)
|
||||
com.hippo.ehviewer.widget.PullListView: void setOnFooterRefreshListener(com.hippo.ehviewer.widget.PullListView$OnFooterRefreshListener)
|
||||
com.hippo.ehviewer.widget.PullListView: void setActionWhenShow(boolean)
|
||||
org.apache.commons.lang3.ClassUtils$Interfaces: org.apache.commons.lang3.ClassUtils$Interfaces[] values()
|
||||
org.apache.commons.lang3.ClassUtils$Interfaces: org.apache.commons.lang3.ClassUtils$Interfaces valueOf(java.lang.String)
|
||||
org.apache.commons.lang3.JavaVersion: org.apache.commons.lang3.JavaVersion[] values()
|
||||
org.apache.commons.lang3.JavaVersion: org.apache.commons.lang3.JavaVersion valueOf(java.lang.String)
|
||||
org.apache.commons.lang3.Range$ComparableComparator: org.apache.commons.lang3.Range$ComparableComparator[] values()
|
||||
org.apache.commons.lang3.Range$ComparableComparator: org.apache.commons.lang3.Range$ComparableComparator valueOf(java.lang.String)
|
||||
org.apache.commons.lang3.text.translate.NumericEntityUnescaper$OPTION: org.apache.commons.lang3.text.translate.NumericEntityUnescaper$OPTION[] values()
|
||||
org.apache.commons.lang3.text.translate.NumericEntityUnescaper$OPTION: org.apache.commons.lang3.text.translate.NumericEntityUnescaper$OPTION valueOf(java.lang.String)
|
||||
org.apache.commons.lang3.time.StopWatch$SplitState: org.apache.commons.lang3.time.StopWatch$SplitState[] values()
|
||||
org.apache.commons.lang3.time.StopWatch$SplitState: org.apache.commons.lang3.time.StopWatch$SplitState valueOf(java.lang.String)
|
||||
org.apache.commons.lang3.time.StopWatch$State: org.apache.commons.lang3.time.StopWatch$State[] values()
|
||||
org.apache.commons.lang3.time.StopWatch$State: org.apache.commons.lang3.time.StopWatch$State valueOf(java.lang.String)
|
||||
+2687
File diff suppressed because it is too large.
Load diff
@@ -12,3 +12,4 @@
|
||||
|
||||
# Project target.
|
||||
target=android-19
|
||||
#proguard.config=E:/Android/android-sdk/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
@@ -1,3 +1,6 @@
|
||||
Version 0.4.4 (2014-04-06)
|
||||
* 修复错误的日志输出导致的崩溃
|
||||
|
||||
Version 0.4.3 (2014-04-05)
|
||||
* 更丰富的错误提示
|
||||
* 禁止多次同时更新
|
||||
|
||||
@@ -1,111 +1,111 @@
|
||||
package com.hippo.ehviewer;
|
||||
|
||||
import com.hippo.ehviewer.util.Ui;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Build;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.KeyCharacterMap;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.FrameLayout.LayoutParams;
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
public class BeautifyScreen {
|
||||
private static final String TAG = "BeautifyScreen";
|
||||
private static Context mContext;
|
||||
private static int mStatusBarHeight = 0;
|
||||
private static int mNavigationBarHeight = 0;
|
||||
|
||||
private static int sbbId = 0;
|
||||
private static int nbbId = 1;
|
||||
|
||||
private BeautifyScreen(){}
|
||||
|
||||
public static void init(Context context) {
|
||||
mContext = context;
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
Resources resources = context.getResources();
|
||||
int sbhResourceId = resources.getIdentifier("status_bar_height",
|
||||
"dimen", "android");
|
||||
if (sbhResourceId > 0)
|
||||
mStatusBarHeight = resources
|
||||
.getDimensionPixelSize(sbhResourceId);
|
||||
int nbhResourceId = resources.getIdentifier(
|
||||
"navigation_bar_height", "dimen", "android");
|
||||
if (nbhResourceId > 0)
|
||||
mNavigationBarHeight = resources
|
||||
.getDimensionPixelSize(nbhResourceId);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ColourfyScreen(Activity activity) {
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
Resources resources = activity.getResources();
|
||||
Window win = activity.getWindow();
|
||||
|
||||
WindowManager.LayoutParams winParams = win.getAttributes();
|
||||
winParams.flags |= WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
|
||||
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION;
|
||||
win.setAttributes(winParams);
|
||||
|
||||
ViewGroup decorViewGroup = (ViewGroup) win.getDecorView();
|
||||
// Add status bar background
|
||||
if (mStatusBarHeight > 0) {
|
||||
View statusBarView = new View(mContext);
|
||||
LayoutParams params1 = new LayoutParams(
|
||||
LayoutParams.MATCH_PARENT, mStatusBarHeight);
|
||||
params1.gravity = Gravity.TOP;
|
||||
statusBarView.setLayoutParams(params1);
|
||||
statusBarView.setBackgroundColor(resources
|
||||
.getColor(R.color.blue_dark));
|
||||
statusBarView.setId(sbbId);
|
||||
decorViewGroup.addView(statusBarView);
|
||||
}
|
||||
|
||||
// Add navigation bar background
|
||||
if (Ui.hasNavigationBar() && mNavigationBarHeight > 0 &&
|
||||
isPortrait(activity)) {
|
||||
View navigationBarView = new View(mContext);
|
||||
LayoutParams params2 = new LayoutParams(
|
||||
LayoutParams.MATCH_PARENT, mNavigationBarHeight);
|
||||
params2.gravity = Gravity.BOTTOM;
|
||||
navigationBarView.setLayoutParams(params2);
|
||||
navigationBarView.setBackgroundColor(resources
|
||||
.getColor(R.color.blue_dark));
|
||||
navigationBarView.setId(nbbId);
|
||||
decorViewGroup.addView(navigationBarView);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isPortrait(Activity activity) {
|
||||
DisplayMetrics dm = new DisplayMetrics();
|
||||
activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
|
||||
return dm.heightPixels > dm.widthPixels;
|
||||
}
|
||||
|
||||
public static void fixColour(Activity activity) {
|
||||
if (Build.VERSION.SDK_INT < 19)
|
||||
return;
|
||||
Window win = activity.getWindow();
|
||||
ViewGroup decorViewGroup = (ViewGroup) win.getDecorView();
|
||||
View navigationBarView = decorViewGroup.findViewById(nbbId);
|
||||
if (navigationBarView == null)
|
||||
return;
|
||||
if (!isPortrait(activity))
|
||||
navigationBarView.setVisibility(View.GONE);
|
||||
else
|
||||
navigationBarView.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
package com.hippo.ehviewer;
|
||||
|
||||
import com.hippo.ehviewer.util.Ui;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.pm.ActivityInfo;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Build;
|
||||
import android.util.DisplayMetrics;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.KeyCharacterMap;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.view.WindowManager;
|
||||
import android.widget.FrameLayout.LayoutParams;
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
public class BeautifyScreen {
|
||||
private static final String TAG = "BeautifyScreen";
|
||||
private static Context mContext;
|
||||
private static int mStatusBarHeight = 0;
|
||||
private static int mNavigationBarHeight = 0;
|
||||
|
||||
private static int sbbId = 0;
|
||||
private static int nbbId = 1;
|
||||
|
||||
private BeautifyScreen(){}
|
||||
|
||||
public static void init(Context context) {
|
||||
mContext = context;
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
Resources resources = context.getResources();
|
||||
int sbhResourceId = resources.getIdentifier("status_bar_height",
|
||||
"dimen", "android");
|
||||
if (sbhResourceId > 0)
|
||||
mStatusBarHeight = resources
|
||||
.getDimensionPixelSize(sbhResourceId);
|
||||
int nbhResourceId = resources.getIdentifier(
|
||||
"navigation_bar_height", "dimen", "android");
|
||||
if (nbhResourceId > 0)
|
||||
mNavigationBarHeight = resources
|
||||
.getDimensionPixelSize(nbhResourceId);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ColourfyScreen(Activity activity) {
|
||||
if (Build.VERSION.SDK_INT >= 19) {
|
||||
Resources resources = activity.getResources();
|
||||
Window win = activity.getWindow();
|
||||
|
||||
WindowManager.LayoutParams winParams = win.getAttributes();
|
||||
winParams.flags |= WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS
|
||||
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION;
|
||||
win.setAttributes(winParams);
|
||||
|
||||
ViewGroup decorViewGroup = (ViewGroup) win.getDecorView();
|
||||
// Add status bar background
|
||||
if (mStatusBarHeight > 0) {
|
||||
View statusBarView = new View(mContext);
|
||||
LayoutParams params1 = new LayoutParams(
|
||||
LayoutParams.MATCH_PARENT, mStatusBarHeight);
|
||||
params1.gravity = Gravity.TOP;
|
||||
statusBarView.setLayoutParams(params1);
|
||||
statusBarView.setBackgroundColor(resources
|
||||
.getColor(R.color.blue_dark));
|
||||
statusBarView.setId(sbbId);
|
||||
decorViewGroup.addView(statusBarView);
|
||||
}
|
||||
|
||||
// Add navigation bar background
|
||||
if (Ui.hasNavigationBar() && mNavigationBarHeight > 0 &&
|
||||
isPortrait(activity)) {
|
||||
View navigationBarView = new View(mContext);
|
||||
LayoutParams params2 = new LayoutParams(
|
||||
LayoutParams.MATCH_PARENT, mNavigationBarHeight);
|
||||
params2.gravity = Gravity.BOTTOM;
|
||||
navigationBarView.setLayoutParams(params2);
|
||||
navigationBarView.setBackgroundColor(resources
|
||||
.getColor(R.color.blue_dark));
|
||||
navigationBarView.setId(nbbId);
|
||||
decorViewGroup.addView(navigationBarView);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean isPortrait(Activity activity) {
|
||||
DisplayMetrics dm = new DisplayMetrics();
|
||||
activity.getWindowManager().getDefaultDisplay().getMetrics(dm);
|
||||
return dm.heightPixels > dm.widthPixels;
|
||||
}
|
||||
|
||||
public static void fixColour(Activity activity) {
|
||||
if (Build.VERSION.SDK_INT < 19)
|
||||
return;
|
||||
Window win = activity.getWindow();
|
||||
ViewGroup decorViewGroup = (ViewGroup) win.getDecorView();
|
||||
View navigationBarView = decorViewGroup.findViewById(nbbId);
|
||||
if (navigationBarView == null)
|
||||
return;
|
||||
if (!isPortrait(activity))
|
||||
navigationBarView.setVisibility(View.GONE);
|
||||
else
|
||||
navigationBarView.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}
|
||||
@@ -1,306 +1,306 @@
|
||||
package com.hippo.ehviewer;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FilterOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import com.hippo.ehviewer.util.Cache;
|
||||
import com.hippo.ehviewer.util.Ui;
|
||||
import com.hippo.ehviewer.util.Util;
|
||||
import com.jakewharton.disklrucache.DiskLruCache;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Movie;
|
||||
import android.os.Environment;
|
||||
import android.util.Log;
|
||||
|
||||
// For Gallery cover key is gid,
|
||||
// for example , gid is 618395, token is 0439fa3666,
|
||||
// so key is 618395
|
||||
|
||||
// For Gallery preview key is gid-preview-num-row,
|
||||
// for example , gid is 618395, token is 0439fa3666, page2
|
||||
// so key is 618395-preview-2-0
|
||||
|
||||
// For Gallery image key is gid-preview-num,
|
||||
// for example , gid is 618395, token is 0439fa3666, image2
|
||||
// so key is 618395-image-2
|
||||
|
||||
public class DiskCache {
|
||||
private static String TAG = "ImageDiskCache";
|
||||
|
||||
private static final int VALUE_IDX = 0;
|
||||
|
||||
private Context mContext;
|
||||
private BitmapFactory.Options opt;
|
||||
private final DiskLruCache diskLruCache;
|
||||
|
||||
public DiskCache(Context context, String path, long maxSize) throws NameNotFoundException, IOException {
|
||||
this.mContext = context;
|
||||
|
||||
opt = Ui.getBitmapOpt();
|
||||
if (!Cache.hasSdCard()) {
|
||||
throw new IllegalStateException("Has no SdCard.");
|
||||
}
|
||||
|
||||
File dir = new File(Environment.getExternalStorageDirectory() + path);
|
||||
int version = mContext.getPackageManager().getPackageInfo(
|
||||
mContext.getPackageName(), 0).versionCode;
|
||||
version = 1;
|
||||
diskLruCache = DiskLruCache.open(dir, version, 1, maxSize);
|
||||
}
|
||||
|
||||
public long size() {
|
||||
return diskLruCache.size();
|
||||
}
|
||||
|
||||
public long maxSize() {
|
||||
return diskLruCache.getMaxSize();
|
||||
}
|
||||
|
||||
public void setMaxSize(long maxSize) {
|
||||
diskLruCache.setMaxSize(maxSize);
|
||||
}
|
||||
|
||||
public void close() {
|
||||
try {
|
||||
diskLruCache.close();
|
||||
} catch (IOException e) {
|
||||
Log.d(TAG, "diskLruCache close error !");
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasKey(String key) {
|
||||
DiskLruCache.Snapshot snapshot = null;
|
||||
try {
|
||||
snapshot = diskLruCache.get(key);
|
||||
} catch (IOException e) {
|
||||
}
|
||||
if(snapshot==null)
|
||||
return false;
|
||||
snapshot.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
public Object get(String key, int type) {
|
||||
DiskLruCache.Snapshot snapshot = null;
|
||||
try {
|
||||
snapshot = diskLruCache.get(key);
|
||||
} catch (IOException e) {
|
||||
}
|
||||
if (snapshot == null)
|
||||
return null;
|
||||
InputStream is = snapshot.getInputStream(VALUE_IDX);
|
||||
if (type == Util.BITMAP) {
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(is, null, opt);
|
||||
return bitmap;
|
||||
} else if (type == Util.MOVIE) {
|
||||
is = new BufferedInputStream(is, 16 * 1024);
|
||||
is.mark(16 * 1024);
|
||||
Movie movie = Movie.decodeStream(is);
|
||||
return movie;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean put(String key, InputStream is) throws IOException {
|
||||
DiskLruCache.Editor editor = diskLruCache.edit(key);
|
||||
if (editor == null)
|
||||
return false;
|
||||
BufferedOutputStream bos = new BufferedOutputStream(editor.newOutputStream(VALUE_IDX));
|
||||
OutputStream os = new CacheOutputStream(bos, editor);
|
||||
Util.copy(is, os);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
try {
|
||||
diskLruCache.delete();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
private class CacheOutputStream extends FilterOutputStream {
|
||||
|
||||
private final DiskLruCache.Editor editor;
|
||||
private boolean failed = false;
|
||||
|
||||
private CacheOutputStream(OutputStream os, DiskLruCache.Editor editor) {
|
||||
super(os);
|
||||
this.editor = editor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
IOException closeException = null;
|
||||
try {
|
||||
super.close();
|
||||
} catch (IOException e) {
|
||||
closeException = e;
|
||||
}
|
||||
|
||||
if (failed) {
|
||||
editor.abort();
|
||||
} else {
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
if (closeException != null) throw closeException;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() throws IOException {
|
||||
try {
|
||||
super.flush();
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(int oneByte) throws IOException {
|
||||
try {
|
||||
super.write(oneByte);
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] buffer) throws IOException {
|
||||
try {
|
||||
super.write(buffer);
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] buffer, int offset, int length) throws IOException {
|
||||
try {
|
||||
super.write(buffer, offset, length);
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
private Context context = null;
|
||||
private File dir = null;
|
||||
int maxSize = 1024 * 10;
|
||||
|
||||
public DiskCache(Context context, String path, int maxSize) {
|
||||
this.context = context;
|
||||
this.maxSize = maxSize;
|
||||
if (maxSize <= 0)
|
||||
maxSize = 1024 * 10;
|
||||
|
||||
File rootdir = Environment.getExternalStorageDirectory();
|
||||
dir = new File(rootdir + path);
|
||||
dir.mkdirs();
|
||||
}
|
||||
|
||||
public boolean hasKey(String key) {
|
||||
synchronized (key) {
|
||||
|
||||
File file = new File(dir, key);
|
||||
if (file.exists()) {
|
||||
if (file.isDirectory())
|
||||
file.delete();
|
||||
else
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public Object get(String key, int type) {
|
||||
synchronized (key) {
|
||||
File file = new File(dir, key);
|
||||
if (!file.isFile())
|
||||
return null;
|
||||
try {
|
||||
InputStream is = new FileInputStream(file);
|
||||
if (type == Util.BITMAP) {
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(is, null, Util.opt);
|
||||
return bitmap;
|
||||
} else if (type == Util.MOVIE) {
|
||||
is = new BufferedInputStream(is, 16 * 1024);
|
||||
is.mark(16 * 1024);
|
||||
Movie movie = Movie.decodeStream(is);
|
||||
return movie;
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
Log.d(TAG, "WTF, I have checked that the file does exists.");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean put(String key, InputStream is) throws IOException {
|
||||
synchronized (key) {
|
||||
File file = new File(dir, key);
|
||||
try {
|
||||
file.delete();
|
||||
file.createNewFile();
|
||||
} catch (IOException e) {
|
||||
dir.mkdirs();
|
||||
file.delete();
|
||||
try {
|
||||
file.createNewFile();
|
||||
} catch (IOException e1) {
|
||||
Log.d(TAG, "WTF, mkdirs didn't work? Path is " + file.getPath());
|
||||
e1.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
try {
|
||||
Util.inputStream2File(is, file);
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
Log.d(TAG, "Put " + key + " error.");
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
clearDirectory(dir);
|
||||
}
|
||||
|
||||
private void clearDirectory(File dir) {
|
||||
|
||||
for (File file: dir.listFiles()) {
|
||||
if (file.isDirectory()) clearDirectory(file);
|
||||
file.delete();
|
||||
}
|
||||
|
||||
}*/
|
||||
/*
|
||||
* private static String getStingMD5(String s) { String re = null; try {
|
||||
* MessageDigest messageDigest =MessageDigest.getInstance(Algorithm); byte[]
|
||||
* inputByteArray = s.getBytes(); messageDigest.update(inputByteArray);
|
||||
* byte[] resultByteArray = messageDigest.digest(); re =
|
||||
* byteArrayToHex(resultByteArray); } catch (NoSuchAlgorithmException e) {
|
||||
* e.printStackTrace(); Log.d(TAG, e.getMessage()); } return re; }
|
||||
*
|
||||
* private static String byteArrayToHex(byte[] byteArray) { char[] hexDigits
|
||||
* = {'0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F' };
|
||||
* char[] resultCharArray =new char[byteArray.length * 2]; int index = 0;
|
||||
* for (byte b : byteArray) { resultCharArray[index++] = hexDigits[b>>> 4 &
|
||||
* 0xf]; resultCharArray[index++] = hexDigits[b& 0xf]; } return new
|
||||
* String(resultCharArray); }
|
||||
*/
|
||||
}
|
||||
package com.hippo.ehviewer;
|
||||
|
||||
import java.io.BufferedInputStream;
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FilterOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import com.hippo.ehviewer.util.Cache;
|
||||
import com.hippo.ehviewer.util.Ui;
|
||||
import com.hippo.ehviewer.util.Util;
|
||||
import com.jakewharton.disklrucache.DiskLruCache;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Movie;
|
||||
import android.os.Environment;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
// For Gallery cover key is gid,
|
||||
// for example , gid is 618395, token is 0439fa3666,
|
||||
// so key is 618395
|
||||
|
||||
// For Gallery preview key is gid-preview-num-row,
|
||||
// for example , gid is 618395, token is 0439fa3666, page2
|
||||
// so key is 618395-preview-2-0
|
||||
|
||||
// For Gallery image key is gid-preview-num,
|
||||
// for example , gid is 618395, token is 0439fa3666, image2
|
||||
// so key is 618395-image-2
|
||||
|
||||
public class DiskCache {
|
||||
private static String TAG = "ImageDiskCache";
|
||||
|
||||
private static final int VALUE_IDX = 0;
|
||||
|
||||
private Context mContext;
|
||||
private BitmapFactory.Options opt;
|
||||
private final DiskLruCache diskLruCache;
|
||||
|
||||
public DiskCache(Context context, String path, long maxSize) throws NameNotFoundException, IOException {
|
||||
this.mContext = context;
|
||||
|
||||
opt = Ui.getBitmapOpt();
|
||||
if (!Cache.hasSdCard()) {
|
||||
throw new IllegalStateException("Has no SdCard.");
|
||||
}
|
||||
|
||||
File dir = new File(Environment.getExternalStorageDirectory() + path);
|
||||
int version = mContext.getPackageManager().getPackageInfo(
|
||||
mContext.getPackageName(), 0).versionCode;
|
||||
version = 1;
|
||||
diskLruCache = DiskLruCache.open(dir, version, 1, maxSize);
|
||||
}
|
||||
|
||||
public long size() {
|
||||
return diskLruCache.size();
|
||||
}
|
||||
|
||||
public long maxSize() {
|
||||
return diskLruCache.getMaxSize();
|
||||
}
|
||||
|
||||
public void setMaxSize(long maxSize) {
|
||||
diskLruCache.setMaxSize(maxSize);
|
||||
}
|
||||
|
||||
public void close() {
|
||||
try {
|
||||
diskLruCache.close();
|
||||
} catch (IOException e) {
|
||||
Log.d(TAG, "diskLruCache close error !");
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasKey(String key) {
|
||||
DiskLruCache.Snapshot snapshot = null;
|
||||
try {
|
||||
snapshot = diskLruCache.get(key);
|
||||
} catch (IOException e) {
|
||||
}
|
||||
if(snapshot==null)
|
||||
return false;
|
||||
snapshot.close();
|
||||
return true;
|
||||
}
|
||||
|
||||
public Object get(String key, int type) {
|
||||
DiskLruCache.Snapshot snapshot = null;
|
||||
try {
|
||||
snapshot = diskLruCache.get(key);
|
||||
} catch (IOException e) {
|
||||
}
|
||||
if (snapshot == null)
|
||||
return null;
|
||||
InputStream is = snapshot.getInputStream(VALUE_IDX);
|
||||
if (type == Util.BITMAP) {
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(is, null, opt);
|
||||
return bitmap;
|
||||
} else if (type == Util.MOVIE) {
|
||||
is = new BufferedInputStream(is, 16 * 1024);
|
||||
is.mark(16 * 1024);
|
||||
Movie movie = Movie.decodeStream(is);
|
||||
return movie;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public boolean put(String key, InputStream is) throws IOException {
|
||||
DiskLruCache.Editor editor = diskLruCache.edit(key);
|
||||
if (editor == null)
|
||||
return false;
|
||||
BufferedOutputStream bos = new BufferedOutputStream(editor.newOutputStream(VALUE_IDX));
|
||||
OutputStream os = new CacheOutputStream(bos, editor);
|
||||
Util.copy(is, os);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
try {
|
||||
diskLruCache.delete();
|
||||
} catch (IOException e) {
|
||||
}
|
||||
}
|
||||
|
||||
private class CacheOutputStream extends FilterOutputStream {
|
||||
|
||||
private final DiskLruCache.Editor editor;
|
||||
private boolean failed = false;
|
||||
|
||||
private CacheOutputStream(OutputStream os, DiskLruCache.Editor editor) {
|
||||
super(os);
|
||||
this.editor = editor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
IOException closeException = null;
|
||||
try {
|
||||
super.close();
|
||||
} catch (IOException e) {
|
||||
closeException = e;
|
||||
}
|
||||
|
||||
if (failed) {
|
||||
editor.abort();
|
||||
} else {
|
||||
editor.commit();
|
||||
}
|
||||
|
||||
if (closeException != null) throw closeException;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void flush() throws IOException {
|
||||
try {
|
||||
super.flush();
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(int oneByte) throws IOException {
|
||||
try {
|
||||
super.write(oneByte);
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] buffer) throws IOException {
|
||||
try {
|
||||
super.write(buffer);
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(byte[] buffer, int offset, int length) throws IOException {
|
||||
try {
|
||||
super.write(buffer, offset, length);
|
||||
} catch (IOException e) {
|
||||
failed = true;
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
private Context context = null;
|
||||
private File dir = null;
|
||||
int maxSize = 1024 * 10;
|
||||
|
||||
public DiskCache(Context context, String path, int maxSize) {
|
||||
this.context = context;
|
||||
this.maxSize = maxSize;
|
||||
if (maxSize <= 0)
|
||||
maxSize = 1024 * 10;
|
||||
|
||||
File rootdir = Environment.getExternalStorageDirectory();
|
||||
dir = new File(rootdir + path);
|
||||
dir.mkdirs();
|
||||
}
|
||||
|
||||
public boolean hasKey(String key) {
|
||||
synchronized (key) {
|
||||
|
||||
File file = new File(dir, key);
|
||||
if (file.exists()) {
|
||||
if (file.isDirectory())
|
||||
file.delete();
|
||||
else
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public Object get(String key, int type) {
|
||||
synchronized (key) {
|
||||
File file = new File(dir, key);
|
||||
if (!file.isFile())
|
||||
return null;
|
||||
try {
|
||||
InputStream is = new FileInputStream(file);
|
||||
if (type == Util.BITMAP) {
|
||||
Bitmap bitmap = BitmapFactory.decodeStream(is, null, Util.opt);
|
||||
return bitmap;
|
||||
} else if (type == Util.MOVIE) {
|
||||
is = new BufferedInputStream(is, 16 * 1024);
|
||||
is.mark(16 * 1024);
|
||||
Movie movie = Movie.decodeStream(is);
|
||||
return movie;
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
Log.d(TAG, "WTF, I have checked that the file does exists.");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean put(String key, InputStream is) throws IOException {
|
||||
synchronized (key) {
|
||||
File file = new File(dir, key);
|
||||
try {
|
||||
file.delete();
|
||||
file.createNewFile();
|
||||
} catch (IOException e) {
|
||||
dir.mkdirs();
|
||||
file.delete();
|
||||
try {
|
||||
file.createNewFile();
|
||||
} catch (IOException e1) {
|
||||
Log.d(TAG, "WTF, mkdirs didn't work? Path is " + file.getPath());
|
||||
e1.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
try {
|
||||
Util.inputStream2File(is, file);
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
Log.d(TAG, "Put " + key + " error.");
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
clearDirectory(dir);
|
||||
}
|
||||
|
||||
private void clearDirectory(File dir) {
|
||||
|
||||
for (File file: dir.listFiles()) {
|
||||
if (file.isDirectory()) clearDirectory(file);
|
||||
file.delete();
|
||||
}
|
||||
|
||||
}*/
|
||||
/*
|
||||
* private static String getStingMD5(String s) { String re = null; try {
|
||||
* MessageDigest messageDigest =MessageDigest.getInstance(Algorithm); byte[]
|
||||
* inputByteArray = s.getBytes(); messageDigest.update(inputByteArray);
|
||||
* byte[] resultByteArray = messageDigest.digest(); re =
|
||||
* byteArrayToHex(resultByteArray); } catch (NoSuchAlgorithmException e) {
|
||||
* e.printStackTrace(); Log.d(TAG, e.getMessage()); } return re; }
|
||||
*
|
||||
* private static String byteArrayToHex(byte[] byteArray) { char[] hexDigits
|
||||
* = {'0','1','2','3','4','5','6','7','8','9', 'A','B','C','D','E','F' };
|
||||
* char[] resultCharArray =new char[byteArray.length * 2]; int index = 0;
|
||||
* for (byte b : byteArray) { resultCharArray[index++] = hexDigits[b>>> 4 &
|
||||
* 0xf]; resultCharArray[index++] = hexDigits[b& 0xf]; } return new
|
||||
* String(resultCharArray); }
|
||||
*/
|
||||
}
|
||||
@@ -12,7 +12,7 @@ import android.graphics.Bitmap;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.support.v4.util.LruCache;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
public class ImageLoadManager {
|
||||
private static final String TAG = "ImageLoadManager";
|
||||
|
||||
@@ -33,7 +33,7 @@ import android.content.res.Configuration;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.os.IBinder;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.util.SparseArray;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
|
||||
@@ -8,7 +8,7 @@ import android.content.Intent;
|
||||
import android.content.res.Configuration;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
|
||||
@@ -37,7 +37,7 @@ import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.view.PagerAdapter;
|
||||
import android.support.v4.view.ViewPager;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
|
||||
@@ -33,7 +33,7 @@ import android.graphics.drawable.ColorDrawable;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
|
||||
@@ -30,7 +30,7 @@ import android.os.Environment;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.support.v4.view.PagerAdapter;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.WindowManager;
|
||||
|
||||
@@ -6,7 +6,9 @@ import android.graphics.Color;
|
||||
import android.graphics.Movie;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import android.view.MotionEvent;
|
||||
|
||||
import com.hippo.ehviewer.R;
|
||||
@@ -293,8 +295,23 @@ public class GalleryView extends GLView {
|
||||
// TODO Mask to reduce brightness
|
||||
//canvas.fillRect(0, 0, mWidth, mHeight, MASK_COLOR);
|
||||
|
||||
if (hasMovie)
|
||||
invalidate();
|
||||
|
||||
// TODO
|
||||
if (hasMovie) {
|
||||
Log.d(TAG, "hasMovie");
|
||||
new Thread() {
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
Thread.sleep(100);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
}.start();
|
||||
}
|
||||
}
|
||||
|
||||
private void resetSizePosition() {
|
||||
|
||||
@@ -23,7 +23,7 @@ import android.database.Cursor;
|
||||
import android.os.Build;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import java.io.Closeable;
|
||||
import java.io.IOException;
|
||||
|
||||
@@ -18,7 +18,7 @@ import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.graphics.Movie;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.util.SparseArray;
|
||||
|
||||
// TODO 初期建立一个线程检索文件夹中所有文件以寻找到所有图片文件
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package com.hippo.ehviewer.gallery.glrenderer;
|
||||
|
||||
import android.graphics.RectF;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.gallery.common.Utils;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import android.graphics.RectF;
|
||||
import android.opengl.GLU;
|
||||
import android.opengl.GLUtils;
|
||||
import android.opengl.Matrix;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.gallery.common.Utils;
|
||||
import com.hippo.ehviewer.util.IntArray;
|
||||
|
||||
@@ -21,7 +21,7 @@ import android.graphics.RectF;
|
||||
import android.opengl.GLES20;
|
||||
import android.opengl.GLUtils;
|
||||
import android.opengl.Matrix;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.util.IntArray;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import junit.framework.Assert;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Movie;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
public class MovieTexture extends CanvasTexture {
|
||||
private static final int DEFAULT_MOVIE_DURATION = 1000;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.hippo.ehviewer.gallery.glrenderer;
|
||||
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import javax.microedition.khronos.opengles.GL11;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ package com.hippo.ehviewer.gallery.glrenderer;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Bitmap.Config;
|
||||
import android.opengl.GLUtils;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import junit.framework.Assert;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
@@ -26,7 +26,7 @@ import android.os.Build;
|
||||
import android.os.Process;
|
||||
import android.os.SystemClock;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.SurfaceHolder;
|
||||
import android.view.View;
|
||||
|
||||
@@ -19,7 +19,7 @@ package com.hippo.ehviewer.gallery.ui;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.graphics.Rect;
|
||||
import android.os.SystemClock;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.MotionEvent;
|
||||
|
||||
import com.hippo.ehviewer.gallery.anim.CanvasAnimation;
|
||||
|
||||
@@ -27,7 +27,7 @@ import android.os.Environment;
|
||||
import android.os.StatFs;
|
||||
import android.provider.MediaStore;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import com.hippo.ehviewer.util.ThreadPool.CancelListener;
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.net.UnknownHostException;
|
||||
import org.apache.http.conn.ConnectTimeoutException;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.R;
|
||||
import com.hippo.ehviewer.exception.FileException;
|
||||
|
||||
@@ -12,6 +12,8 @@ import java.net.SocketTimeoutException;
|
||||
import java.net.URL;
|
||||
import java.net.URLEncoder;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.zip.GZIPInputStream;
|
||||
|
||||
import org.apache.http.conn.ConnectTimeoutException;
|
||||
@@ -27,7 +29,8 @@ import android.content.Context;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.support.v4.util.LruCache;
|
||||
import android.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
/**
|
||||
* It is not thread safe
|
||||
@@ -38,6 +41,9 @@ import android.util.Log;
|
||||
public class HttpHelper {
|
||||
private static final String TAG = "HttpHelper";
|
||||
|
||||
private static String DEFAULT_CHARSET = "utf-8";
|
||||
private static String CHARSET_KEY = "charset=";
|
||||
|
||||
private Context mContext;
|
||||
private Exception mException;
|
||||
|
||||
@@ -89,8 +95,27 @@ public class HttpHelper {
|
||||
is = new GZIPInputStream(is);
|
||||
baos = new ByteArrayOutputStream();
|
||||
Util.copy(is, baos, Constant.BUFFER_SIZE);
|
||||
// TODO charset
|
||||
pageContext = baos.toString("utf-8");
|
||||
|
||||
// Get charset
|
||||
String charset = null;
|
||||
List<String> contentType = conn.getHeaderFields().get("Content-Type");
|
||||
if (contentType != null) {
|
||||
for (String item : contentType) {
|
||||
if (item == null)
|
||||
continue;
|
||||
int index = -1;
|
||||
if ((index = item.indexOf(CHARSET_KEY)) != -1) {
|
||||
charset = item.substring(index + CHARSET_KEY.length());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// Use default charset
|
||||
if (charset == null) {
|
||||
charset = DEFAULT_CHARSET;
|
||||
}
|
||||
|
||||
pageContext = baos.toString(charset);
|
||||
} catch (IOException e) {
|
||||
throw e;
|
||||
} finally {
|
||||
|
||||
@@ -19,7 +19,7 @@ import android.content.Intent;
|
||||
import android.os.Binder;
|
||||
import android.os.IBinder;
|
||||
import android.support.v4.app.NotificationCompat;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
public class DownloadService extends Service {
|
||||
private static final int DOWNLOAD_NOTIFY_ID = -1;
|
||||
|
||||
@@ -6,7 +6,7 @@ import android.graphics.Bitmap;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.support.v4.util.LruCache;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import com.hippo.ehviewer.DiskCache;
|
||||
import com.hippo.ehviewer.MangaDetail;
|
||||
|
||||
@@ -1,196 +1,196 @@
|
||||
package com.hippo.ehviewer.util;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.io.Writer;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import android.util.Log;
|
||||
|
||||
public class Crash {
|
||||
private static final String TAG = "Crash";
|
||||
|
||||
private static Context mContext;
|
||||
|
||||
private static String externalCrashFilePath = "/EhViewer/crash";
|
||||
private static String internalCrashFilePath = "/crash";
|
||||
|
||||
private static final String NEW_CRAHS = "new_crash";
|
||||
private static final String LAST_CRASH_POSITION = "last_crash_position";
|
||||
private static final String LAST_CRASH_NAME = "last_crash_name";
|
||||
|
||||
private static DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss");
|
||||
|
||||
private static boolean mInit = false;
|
||||
|
||||
/**
|
||||
* Init Crash
|
||||
*
|
||||
* @param context Application context
|
||||
*/
|
||||
public static void init(Context context) {
|
||||
if (mInit)
|
||||
return;
|
||||
mInit = true;
|
||||
|
||||
mContext = context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is init
|
||||
* @return True if init
|
||||
*/
|
||||
public static boolean isInit() {
|
||||
return mInit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Save throwable infomation to file
|
||||
*
|
||||
* @param ex The throwable to store
|
||||
*/
|
||||
public static void saveCrashInfo2File(Throwable ex) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
collectDeviceInfo(sb);
|
||||
|
||||
Writer writer = new StringWriter();
|
||||
PrintWriter printWriter = new PrintWriter(writer);
|
||||
ex.printStackTrace(printWriter);
|
||||
Throwable cause = ex.getCause();
|
||||
while (cause != null) {
|
||||
cause.printStackTrace(printWriter);
|
||||
cause = cause.getCause();
|
||||
}
|
||||
printWriter.close();
|
||||
String result = writer.toString();
|
||||
Log.e(TAG, result);
|
||||
sb.append("======== CrashInfo ========\n");
|
||||
sb.append(result);
|
||||
try {
|
||||
long timestamp = System.currentTimeMillis();
|
||||
String time = formatter.format(new Date());
|
||||
String fileName = "crash-" + time + "-" + timestamp + ".log";
|
||||
String path = null;
|
||||
boolean position = false;
|
||||
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
|
||||
path = Environment.getExternalStorageDirectory() + externalCrashFilePath;
|
||||
position = true;
|
||||
}
|
||||
else {
|
||||
path = mContext.getFilesDir() + internalCrashFilePath;
|
||||
position = false;
|
||||
}
|
||||
File dir = new File(path);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
FileOutputStream fos = new FileOutputStream(new File(path, fileName));
|
||||
fos.write(sb.toString().getBytes());
|
||||
fos.close();
|
||||
// Record info for next time upload
|
||||
SharedPreferences configPre = mContext.getSharedPreferences("config", 0);
|
||||
SharedPreferences.Editor editor = configPre.edit();
|
||||
editor.putBoolean(NEW_CRAHS, true);
|
||||
editor.putBoolean(LAST_CRASH_POSITION, position);
|
||||
editor.putString(LAST_CRASH_NAME, fileName);
|
||||
editor.commit();
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "An error occured while writing crash file...", e);
|
||||
}
|
||||
}
|
||||
|
||||
private static void collectDeviceInfo(StringBuffer sb) {
|
||||
try {
|
||||
PackageManager pm = mContext.getPackageManager();
|
||||
PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), PackageManager.GET_ACTIVITIES);
|
||||
if (pi != null) {
|
||||
String versionName = pi.versionName == null ? "null" : pi.versionName;
|
||||
String versionCode = String.valueOf(pi.versionCode);
|
||||
sb.append("======== PackageInfo ========\n");
|
||||
sb.append("PackageName=" + pi.packageName + "\n");
|
||||
sb.append("VersionName=" + versionName + "\n");
|
||||
sb.append("VersionCode=" + versionCode + "\n");
|
||||
sb.append("\n");
|
||||
}
|
||||
} catch (NameNotFoundException e) {
|
||||
Log.e(TAG, "an error occured when collect package info", e);
|
||||
}
|
||||
sb.append("======== DeviceInfo ========\n");
|
||||
sb.append("BOARD=" + Build.BOARD + "\n");
|
||||
sb.append("BOOTLOADER=" + Build.BOOTLOADER + "\n");
|
||||
sb.append("CPU_ABI=" + Build.CPU_ABI + "\n");
|
||||
sb.append("CPU_ABI2=" + Build.CPU_ABI2 + "\n");
|
||||
sb.append("DEVICE=" + Build.DEVICE + "\n");
|
||||
sb.append("DISPLAY=" + Build.DISPLAY + "\n");
|
||||
sb.append("FINGERPRINT=" + Build.FINGERPRINT + "\n");
|
||||
sb.append("HARDWARE=" + Build.HARDWARE + "\n");
|
||||
sb.append("HOST=" + Build.HOST + "\n");
|
||||
sb.append("ID=" + Build.ID + "\n");
|
||||
sb.append("MANUFACTURER=" + Build.MANUFACTURER + "\n");
|
||||
sb.append("MODEL=" + Build.MODEL + "\n");
|
||||
sb.append("PRODUCT=" + Build.PRODUCT + "\n");
|
||||
sb.append("RADIO=" + Build.getRadioVersion() + "\n");
|
||||
sb.append("SERIAL=" + Build.SERIAL + "\n");
|
||||
sb.append("TAGS=" + Build.TAGS + "\n");
|
||||
sb.append("TYPE=" + Build.TYPE + "\n");
|
||||
sb.append("USER=" + Build.USER + "\n");
|
||||
sb.append("CODENAME=" + Build.VERSION.CODENAME + "\n");
|
||||
sb.append("INCREMENTAL=" + Build.VERSION.INCREMENTAL + "\n");
|
||||
sb.append("RELEASE=" + Build.VERSION.RELEASE + "\n");
|
||||
sb.append("SDK=" + Build.VERSION.SDK_INT + "\n");
|
||||
sb.append("\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Check is there last crash
|
||||
*
|
||||
* @return Return the crash String or null if there is no
|
||||
*/
|
||||
public static String getLastCrash() {
|
||||
SharedPreferences configPre = mContext.getSharedPreferences("config", 0);
|
||||
if (!configPre.getBoolean(NEW_CRAHS, false))
|
||||
return null;
|
||||
|
||||
boolean position = configPre.getBoolean(LAST_CRASH_POSITION, false);
|
||||
String lastCrashName;
|
||||
if ((lastCrashName = configPre.getString(LAST_CRASH_NAME, null)) == null)
|
||||
return null;
|
||||
|
||||
File lastCrashFile;
|
||||
if (position) {
|
||||
if(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
|
||||
return null;
|
||||
lastCrashFile = new File(Environment.getExternalStorageDirectory() + externalCrashFilePath, lastCrashName);
|
||||
}
|
||||
else {
|
||||
lastCrashFile = new File(mContext.getFilesDir() + internalCrashFilePath, lastCrashName);
|
||||
}
|
||||
if (!lastCrashFile.isFile())
|
||||
return null;
|
||||
|
||||
try {
|
||||
byte[] buffer = new byte[(int) lastCrashFile.length()];
|
||||
DataInputStream din = new DataInputStream(new FileInputStream(lastCrashFile));
|
||||
din.readFully(buffer);
|
||||
din.close();
|
||||
configPre.edit().putBoolean(NEW_CRAHS, false).commit();
|
||||
return new String(buffer);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "An error occured while reading crash file...", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
package com.hippo.ehviewer.util;
|
||||
|
||||
import java.io.DataInputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.io.Writer;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.content.pm.PackageInfo;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.content.pm.PackageManager.NameNotFoundException;
|
||||
import android.os.Build;
|
||||
import android.os.Environment;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
public class Crash {
|
||||
private static final String TAG = "Crash";
|
||||
|
||||
private static Context mContext;
|
||||
|
||||
private static String externalCrashFilePath = "/EhViewer/crash";
|
||||
private static String internalCrashFilePath = "/crash";
|
||||
|
||||
private static final String NEW_CRAHS = "new_crash";
|
||||
private static final String LAST_CRASH_POSITION = "last_crash_position";
|
||||
private static final String LAST_CRASH_NAME = "last_crash_name";
|
||||
|
||||
private static DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss");
|
||||
|
||||
private static boolean mInit = false;
|
||||
|
||||
/**
|
||||
* Init Crash
|
||||
*
|
||||
* @param context Application context
|
||||
*/
|
||||
public static void init(Context context) {
|
||||
if (mInit)
|
||||
return;
|
||||
mInit = true;
|
||||
|
||||
mContext = context;
|
||||
}
|
||||
|
||||
/**
|
||||
* Is init
|
||||
* @return True if init
|
||||
*/
|
||||
public static boolean isInit() {
|
||||
return mInit;
|
||||
}
|
||||
|
||||
/**
|
||||
* Save throwable infomation to file
|
||||
*
|
||||
* @param ex The throwable to store
|
||||
*/
|
||||
public static void saveCrashInfo2File(Throwable ex) {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
collectDeviceInfo(sb);
|
||||
|
||||
Writer writer = new StringWriter();
|
||||
PrintWriter printWriter = new PrintWriter(writer);
|
||||
ex.printStackTrace(printWriter);
|
||||
Throwable cause = ex.getCause();
|
||||
while (cause != null) {
|
||||
cause.printStackTrace(printWriter);
|
||||
cause = cause.getCause();
|
||||
}
|
||||
printWriter.close();
|
||||
String result = writer.toString();
|
||||
Log.e(TAG, result);
|
||||
sb.append("======== CrashInfo ========\n");
|
||||
sb.append(result);
|
||||
try {
|
||||
long timestamp = System.currentTimeMillis();
|
||||
String time = formatter.format(new Date());
|
||||
String fileName = "crash-" + time + "-" + timestamp + ".log";
|
||||
String path = null;
|
||||
boolean position = false;
|
||||
if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {
|
||||
path = Environment.getExternalStorageDirectory() + externalCrashFilePath;
|
||||
position = true;
|
||||
}
|
||||
else {
|
||||
path = mContext.getFilesDir() + internalCrashFilePath;
|
||||
position = false;
|
||||
}
|
||||
File dir = new File(path);
|
||||
if (!dir.exists()) {
|
||||
dir.mkdirs();
|
||||
}
|
||||
FileOutputStream fos = new FileOutputStream(new File(path, fileName));
|
||||
fos.write(sb.toString().getBytes());
|
||||
fos.close();
|
||||
// Record info for next time upload
|
||||
SharedPreferences configPre = mContext.getSharedPreferences("config", 0);
|
||||
SharedPreferences.Editor editor = configPre.edit();
|
||||
editor.putBoolean(NEW_CRAHS, true);
|
||||
editor.putBoolean(LAST_CRASH_POSITION, position);
|
||||
editor.putString(LAST_CRASH_NAME, fileName);
|
||||
editor.commit();
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "An error occured while writing crash file...", e);
|
||||
}
|
||||
}
|
||||
|
||||
private static void collectDeviceInfo(StringBuffer sb) {
|
||||
try {
|
||||
PackageManager pm = mContext.getPackageManager();
|
||||
PackageInfo pi = pm.getPackageInfo(mContext.getPackageName(), PackageManager.GET_ACTIVITIES);
|
||||
if (pi != null) {
|
||||
String versionName = pi.versionName == null ? "null" : pi.versionName;
|
||||
String versionCode = String.valueOf(pi.versionCode);
|
||||
sb.append("======== PackageInfo ========\n");
|
||||
sb.append("PackageName=" + pi.packageName + "\n");
|
||||
sb.append("VersionName=" + versionName + "\n");
|
||||
sb.append("VersionCode=" + versionCode + "\n");
|
||||
sb.append("\n");
|
||||
}
|
||||
} catch (NameNotFoundException e) {
|
||||
Log.e(TAG, "an error occured when collect package info", e);
|
||||
}
|
||||
sb.append("======== DeviceInfo ========\n");
|
||||
sb.append("BOARD=" + Build.BOARD + "\n");
|
||||
sb.append("BOOTLOADER=" + Build.BOOTLOADER + "\n");
|
||||
sb.append("CPU_ABI=" + Build.CPU_ABI + "\n");
|
||||
sb.append("CPU_ABI2=" + Build.CPU_ABI2 + "\n");
|
||||
sb.append("DEVICE=" + Build.DEVICE + "\n");
|
||||
sb.append("DISPLAY=" + Build.DISPLAY + "\n");
|
||||
sb.append("FINGERPRINT=" + Build.FINGERPRINT + "\n");
|
||||
sb.append("HARDWARE=" + Build.HARDWARE + "\n");
|
||||
sb.append("HOST=" + Build.HOST + "\n");
|
||||
sb.append("ID=" + Build.ID + "\n");
|
||||
sb.append("MANUFACTURER=" + Build.MANUFACTURER + "\n");
|
||||
sb.append("MODEL=" + Build.MODEL + "\n");
|
||||
sb.append("PRODUCT=" + Build.PRODUCT + "\n");
|
||||
sb.append("RADIO=" + Build.getRadioVersion() + "\n");
|
||||
sb.append("SERIAL=" + Build.SERIAL + "\n");
|
||||
sb.append("TAGS=" + Build.TAGS + "\n");
|
||||
sb.append("TYPE=" + Build.TYPE + "\n");
|
||||
sb.append("USER=" + Build.USER + "\n");
|
||||
sb.append("CODENAME=" + Build.VERSION.CODENAME + "\n");
|
||||
sb.append("INCREMENTAL=" + Build.VERSION.INCREMENTAL + "\n");
|
||||
sb.append("RELEASE=" + Build.VERSION.RELEASE + "\n");
|
||||
sb.append("SDK=" + Build.VERSION.SDK_INT + "\n");
|
||||
sb.append("\n");
|
||||
}
|
||||
|
||||
/**
|
||||
* Check is there last crash
|
||||
*
|
||||
* @return Return the crash String or null if there is no
|
||||
*/
|
||||
public static String getLastCrash() {
|
||||
SharedPreferences configPre = mContext.getSharedPreferences("config", 0);
|
||||
if (!configPre.getBoolean(NEW_CRAHS, false))
|
||||
return null;
|
||||
|
||||
boolean position = configPre.getBoolean(LAST_CRASH_POSITION, false);
|
||||
String lastCrashName;
|
||||
if ((lastCrashName = configPre.getString(LAST_CRASH_NAME, null)) == null)
|
||||
return null;
|
||||
|
||||
File lastCrashFile;
|
||||
if (position) {
|
||||
if(!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
|
||||
return null;
|
||||
lastCrashFile = new File(Environment.getExternalStorageDirectory() + externalCrashFilePath, lastCrashName);
|
||||
}
|
||||
else {
|
||||
lastCrashFile = new File(mContext.getFilesDir() + internalCrashFilePath, lastCrashName);
|
||||
}
|
||||
if (!lastCrashFile.isFile())
|
||||
return null;
|
||||
|
||||
try {
|
||||
byte[] buffer = new byte[(int) lastCrashFile.length()];
|
||||
DataInputStream din = new DataInputStream(new FileInputStream(lastCrashFile));
|
||||
din.readFully(buffer);
|
||||
din.close();
|
||||
configPre.edit().putBoolean(NEW_CRAHS, false).commit();
|
||||
return new String(buffer);
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "An error occured while reading crash file...", e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ import android.graphics.Movie;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.support.v4.util.LruCache;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
// TODO Stringbuffer to StringBuild
|
||||
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
package com.hippo.ehviewer.util;
|
||||
|
||||
public class Log {
|
||||
private static final String NULL = "null";
|
||||
|
||||
public static int v(String tag, String msg) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.v(tag, msg);
|
||||
}
|
||||
public static int v(String tag, String msg, Throwable tr) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.v(tag, msg, tr);
|
||||
}
|
||||
public static int d(String tag, String msg) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.d(tag, msg);
|
||||
}
|
||||
public static int d(String tag, String msg, Throwable tr) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.d(tag, msg, tr);
|
||||
}
|
||||
public static int i(String tag, String msg) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.i(tag, msg);
|
||||
}
|
||||
public static int i(String tag, String msg, Throwable tr) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.i(tag, msg, tr);
|
||||
}
|
||||
public static int w(String tag, String msg) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.w(tag, msg);
|
||||
}
|
||||
public static int w(String tag, String msg, Throwable tr) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.w(tag, msg, tr);
|
||||
}
|
||||
public static int w(String tag, Throwable tr) {
|
||||
return android.util.Log.w(tag, tr);
|
||||
}
|
||||
public static int e(String tag, String msg) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.e(tag, msg);
|
||||
}
|
||||
public static int e(String tag, String msg, Throwable tr) {
|
||||
if (msg == null)
|
||||
msg = NULL;
|
||||
return android.util.Log.e(tag, msg, tr);
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
package com.hippo.ehviewer.util;
|
||||
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.LinkedBlockingQueue;
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.hippo.ehviewer.view;
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.View;
|
||||
import android.widget.RelativeLayout;
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import android.graphics.Bitmap;
|
||||
import android.graphics.Movie;
|
||||
import android.support.v4.util.LruCache;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.View;
|
||||
|
||||
public class OlImageView extends SuperImageView {
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -10,7 +10,7 @@ import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import android.support.v4.view.ViewCompat;
|
||||
import android.support.v4.view.ViewGroupCompat;
|
||||
import android.support.v4.view.accessibility.AccessibilityNodeInfoCompat;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
import android.view.Gravity;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.MotionEvent;
|
||||
|
||||
@@ -41,7 +41,7 @@ import java.util.concurrent.TimeUnit;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
import android.util.Log;
|
||||
import com.hippo.ehviewer.util.Log;
|
||||
|
||||
/**
|
||||
* A cache that uses a bounded amount of space on a filesystem. Each cache entry
|
||||
|
||||
Reference in new issue
Block a user