File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
WordPressUtils/src/main/java/org/wordpress/android/util Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 11package org .wordpress .android .util ;
22
3- import android .content .Context ;
4- import android .content .pm .PackageInfo ;
5- import android .content .pm .PackageManager ;
63import android .os .SystemClock ;
74
85import org .wordpress .android .util .AppLog .T ;
@@ -76,16 +73,5 @@ public void dumpToLog() {
7673 }
7774 AppLog .d (T .PROFILING , mLabel + ": end, " + (now - first ) + " ms" );
7875 }
79-
80- // Returns app version name String
81- public static String getVersionName (Context context ) {
82- PackageManager pm = context .getPackageManager ();
83- try {
84- PackageInfo pi = pm .getPackageInfo (context .getPackageName (), 0 );
85- return pi .versionName == null ? "" : pi .versionName ;
86- } catch (PackageManager .NameNotFoundException e ) {
87- return "" ;
88- }
89- }
9076}
9177
You can’t perform that action at this time.
0 commit comments